The home of JSON Schema validation right in your browser 🚧 Alpha 🚧 draft-7 only
Valid JSON:
{
"type": "object",
"additionalProperties": false,
"properties": {
"_id": {},
"test": {},
"test1": {},
"test2": {}
},
"anyOf": [
{
"type": "object",
"properties": {
"test1": {}
},
"additionalProperties": false
},
{
"type": "object",
"properties": {
"test2": {}
},
"additionalProperties": false
}
]
}
Valid JSON:
{
"test": "123"
}
should NOT have additional properties.
additionalProperties at "#/anyOf/0/additionalProperties"
Instance location: ""
should NOT have additional properties.
additionalProperties at "#/anyOf/1/additionalProperties"
Instance location: ""
should match some schema in anyOf.
anyOf at "#/anyOf"
Instance location: ""
jsonschema.dev@relequestual Thanks to Sponsors: