The home of JSON Schema validation right in your browser 🚧 Alpha 🚧 draft-7 only
Valid JSON:
xxxxxxxxxx
{
"properties": {
"pageA": {
"properties": {
"a": { "type": "number" }
},
"allOf": [
{
"if": {
"properties": {
"a": { "exclusiveMaximum": 10 }
}
},
"then": {
"properties": {
"b": { "type": "number" },
"c": { "type": "string" }
}
},
"else": {
"allOf": [
{
"if": {
"properties": {
"a": { "exclusiveMaximum": 20 }
}
},
"then": {
"properties": {
"e": { "type": "number" },
"f": { "type": "string" }
}
},
"else": {
"allOf": [
{
"if": {
"properties": {
"a": { "exclusiveMaximum": 30 }
}
},
"then": {
"properties": {
"i": { "type": "number" },
"j": { "type": "string" }
}
},
"else": {
"properties": {
"k": { "type": "number" },
"l": { "type": "string" }
}
}
}
]
}
}
]
}
}
]
}
}
}
Valid JSON:
xxxxxxxxxx
{
"pageA": {
"a": 30,
"k": "50"
}
}
should be number.
type at "#/properties/pageA/allOf/0/else/allOf/0/else/allOf/0/else/properties/k/type"
Instance location: "/pageA/k"
should match "else" schema.
if at "#/properties/pageA/allOf/0/else/allOf/0/else/allOf/0/if"
Instance location: "/pageA"
should match "else" schema.
if at "#/properties/pageA/allOf/0/else/allOf/0/if"
Instance location: "/pageA"
should match "else" schema.
if at "#/properties/pageA/allOf/0/if"
Instance location: "/pageA"
jsonschema.dev@relequestual Thanks to Sponsors: