'How to do JSON schema validation for Upper case , type is object ? i tried the below one it did not work
this is my JSON schema.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Template",
"description": "List of Template Config",
"type": "array",
"items": {
"description": "List of Template Config",
"type": "object",
"patternProperties": {
"^[A-Z]": {
"description": "Template Name",
"type": "object",
"properties": {
"priority": {
"description": "priority of template",
"type": "string",
"enum": [
"high",
"medium",
"low"
]
}
}
}
}
}
}
i wanted impose template Name should be in upper case.
the below is my JSON
[
{
"rrECLAIM_TEST ": {
"priority ": "medium "
}
}
]
ideally this should given error. instead it is giving successful.
could you please help here ? what am doing wrong here ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
