How to Use the JSON Schema Validator
TL;DR
- Open Schema Validator.
- Paste JSON on the left, Schema on the right.
- Click Validate → see errors or success (with tree view).
Minimal example
JSON:
{ "id": 101, "active": true }Schema:
{
"type": "object",
"properties": {
"id": { "type": "number" },
"active": { "type": "boolean" }
},
"required": ["id", "active"]
}Tips
- Errors list shows the failing keyword/messages from AJV.
- Draft support: common JSON Schema drafts are supported by AJV.
- Validate arrays via
items; enums viaenum; unions viaoneOf/anyOf.