The home of JSON Schema validation right in your browser 🚧 Alpha 🚧 draft-7 only
Valid JSON:
xxxxxxxxxx
{
"items": {
"oneOf":[
{
"properties": {
"name": { "type": "string" },
"email": { "type": "string" },
"isStudent": { "type": "boolean" },
"year": { "type": "number" }
}
}, {
"properties": {
"name": { "type": "string" },
"email": { "type": "string" },
"isTeacher": { "type": "boolean" },
"class": { "type": "number" }
}
}
]
}
}
Valid JSON:
xxxxxxxxxx
[
{
"name": "Bob",
"email": "bob@example.com",
"isStudent": true,
"year": 1
}, {
"name": "Alice",
"email": "alice@example.com",
"isTeacher": true,
"class": "CS101"
}
]
should match exactly one schema in oneOf.
oneOf at "#/items/oneOf"
Instance location: "/0"
jsonschema.dev@relequestual Thanks to Sponsors: