Here is the JSON schema I am working with:
{
"title": "JSON Schema for magazine subscription",
"type": "object",
"properties": {
"lab": {
"type": "string"
}
},
"patternProperties": {
"[A-Za-z][A-Za-z_]*[A-Za-z]": {
"type": "boolean"
}
},
"required": [
"lab"
]
}
I am trying to match a JSON data like this:
{
"SP": false,
"lab": "labri"
}
However, it failed because the value of "lab"
should be a boolean according to the schema. This means that "lab" matches the patternProperties.
Does anyone have a solution for this?
PS: Sorry for my English skills