The home of JSON Schema validation right in your browser 🚧 Alpha 🚧 draft-7 only
Valid JSON:
xxxxxxxxxx
{
"type": "object",
"anyOf": [
{
"oneOf": [
{"required": ["field_2"]},
{"required": ["field_3"]}
]
},
{
"not": {
"required": ["field_2", "field_3"]
}
}
]
}
Valid JSON:
xxxxxxxxxx
{
"field_2": {
"value": "someOtherVal"
},
"field_3": {
"key1": "a",
"key2": "m"
}
}
should match exactly one schema in oneOf.
oneOf at "#/anyOf/0/oneOf"
Instance location: ""
should NOT be valid.
not at "#/anyOf/1/not"
Instance location: ""
should match some schema in anyOf.
anyOf at "#/anyOf"
Instance location: ""
jsonschema.dev@relequestual Thanks to Sponsors: