The home of JSON Schema validation right in your browser 🚧 Alpha 🚧 draft-7 only
Valid JSON:
xxxxxxxxxx
{
"oneOf": [
{
"additionalProperties": false
},
{
"required": [
"f1"
],
"not": {
"required": [
"f2",
"f3"
]
}
},
{
"required": [
"f3"
],
"not": {
"required": [
"f2",
"f1"
]
}
},
{
"required": [
"f2"
],
"not": {
"required": [
"f3",
"f1"
]
}
}
]
}
Valid JSON:
xxxxxxxxxx
{
"f1": "John",
"f3": "abc"
}
should NOT have additional properties.
additionalProperties at "#/oneOf/0/additionalProperties"
Instance location: ""
should NOT have additional properties.
additionalProperties at "#/oneOf/0/additionalProperties"
Instance location: ""
should match exactly one schema in oneOf.
oneOf at "#/oneOf"
Instance location: ""
jsonschema.dev@relequestual Thanks to Sponsors: