JSON Schema Validator
Validate JSON against a schema.
About the JSON Schema Validator
Validates a JSON document against a JSON Schema and reports each violation with the path that failed, so you learn which field is wrong rather than that something is. Runs on Ajv, the same validator used in many Node toolchains, so results match what your build or API layer will decide.
How to use the JSON Schema Validator
- Paste your JSON Schema.
- Paste the JSON document to check.
- Press Validate and read the errors by path.
Frequently asked questions
- Which JSON Schema drafts are supported?
- The modern drafts supported by Ajv, including draft-07 and 2020-12. Declare the draft with $schema so the correct semantics apply.
- Why did an unexpected extra property pass validation?
- JSON Schema permits unknown properties by default. Set additionalProperties to false on the object to reject them.
- How is this different from the JSON Formatter?
- The formatter checks that the document is syntactically valid JSON. This checks that valid JSON also conforms to the structure, types, and constraints your schema requires.