The home of JSON Schema validation right in your browser 🚧 Alpha 🚧 draft-7 only
Valid JSON:
xxxxxxxxxx{ "type": "object", "allOf": [ { "$comment": "for name[1-4]. At least one `nameN`.", "anyOf": [ {"required":["name1"]}, {"required":["name2"]}, {"required":["name3"]}, {"required":["name4"]} ] }, { "$comment": "for home[1-2]. One of (exclusive or) `homeN` only.", "oneOf":[ {"required":["home1"]}, {"required":["home2"]} ] } ], "properties": { "name1": { "type": "string" }, "name2": { "type": "string" }, "name3": { "type": "string" }, "name4": { "type": "string" }, "home1": { "type": "string" }, "home2": { "type": "string" }, "age": { "type": "number" } }, "additionalProperties": false}​Valid JSON:
xxxxxxxxxx{ "name1": "name_string", "name4": "name_string", "age": 18}should have required property 'home1'.
required at "#/allOf/1/oneOf/0/required"
Instance location: ""
should have required property 'home2'.
required at "#/allOf/1/oneOf/1/required"
Instance location: ""
should match exactly one schema in oneOf.
oneOf at "#/allOf/1/oneOf"
Instance location: ""
jsonschema.dev@relequestual Thanks to Sponsors: ![]()