The home of JSON Schema validation right in your browser 🚧 Alpha 🚧 draft-7 only
Valid JSON:
xxxxxxxxxx
{
"properties": {
"listA": {
"type": "array",
"items": {
}
},
"listB": {
"type": "array",
"items": {
​
}
},
"listC": {
"type": "array",
"items": {
​
}
}
},
"anyOf": [
{
"required": [
"listA"
],
"properties": {
"listA": {
"minItems": 1
}
}
},
{
"required": [
"listB"
],
"properties": {
"listB": {
"minItems": 1
}
}
},
{
"required": [
"listC"
],
"properties": {
"listC": {
"minItems": 1
}
}
}
]
}
Valid JSON:
xxxxxxxxxx
{
"listA": [
],
"listB": [
],
"propsForAll": {
"property1": "value",
"property2": "value"
}
}
​
should NOT have fewer than 1 items.
minItems at "#/anyOf/0/properties/listA/minItems"
Instance location: "/listA"
should NOT have fewer than 1 items.
minItems at "#/anyOf/1/properties/listB/minItems"
Instance location: "/listB"
should have required property 'listC'.
required at "#/anyOf/2/required"
Instance location: ""
should match some schema in anyOf.
anyOf at "#/anyOf"
Instance location: ""
jsonschema.dev@relequestual Thanks to Sponsors: