The home of JSON Schema validation right in your browser 🚧 Alpha 🚧 draft-7 only
Valid JSON:
{ "type": "object", "properties": { "stat_data": { "type": "array", "minItems": 1, "items": { "type": "object", "properties": {}, "anyOf": [{ "required": ["region"], "properties": { "region": { "enum": ["america"] }, "country": { "type": "string" }, "population": { "type": "string" } } }, { "oneOf": [ { "required": ["region"], "properties": { "region": { "enum": ["asia"] }, "country": { "type": "string" }, "details": { "type": "object", "properties": { "language": { "type": "string" }, "tz": { "type": "string" } } } } }, { "required": ["region"], "properties": { "region": { "enum": ["europe"] }, "country": { "type": "string" }, "language": { "type": "string" } } } ] } ] } } }}Valid JSON:
{ "stat_data": [{ "region": "america", "country": "USA", "states": "50" }, { "region": "asia", "country": "Japan", "details":{ "language":"Japanese", "tz": "utc+9.00" } }, { "region": "europe", "country": "finland", "language":"Finnish" } ]}jsonschema.dev@relequestual Thanks to Sponsors: ![]()