JSON Schema Validator
Validate JSON documents against JSON Schema definitions using Ajv. Path-accurate structural error reports. · Updated
JSON Schema validation catches contract drift before it hits production. Draft-07 and 2020-12 support with local Ajv keeps payloads private while you iterate on schemas.
Common errors and fixes
schema is invalid
Fix the schema document first; Ajv cannot validate data against a broken schema.
must be object
Root schema type may require an object. Wrap arrays or primitives if your schema expects them.
Add missing required fields or remove them from the schema required array.
Why it happens, with a live exampleFormat keywords like email/uri need matching strings; disable format checking only if intentional.
Why it happens, with a live exampleOptions
| Option | Description |
|---|---|
| Report All Errors | Return all validation errors rather than stopping at the first failure. |
FAQ
What JSON Schema drafts are supported?
JSON Schema Draft-07 and Draft 2020-12 are fully supported via the standard Ajv validation engine.
Can I validate just a Schema without data?
Yes. Providing just a schema object validates its syntax and displays structural summary metadata.