JSON Schema Validator
Check a JSON document against a JSON Schema and see every problem with its path. Covers types, required fields, formats, patterns, ranges, $ref, allOf, anyOf, oneOf and if/then/else.
How to validate JSON against a schema
Paste the document
Put your JSON in the first box.
Paste the schema
Put the JSON Schema in the second box.
Read the problems
Each problem is listed with the path of the value.
When to use JSON Schema Validator
An API response or configuration file must match an agreed structure, and you want every difference listed.
You are writing a schema and want to test it against sample documents.
Tips for a better JSON Schema Validator result
Paste the document in the first box and the schema in the second, then read each problem with the path of the value.
Use the JSON to JSON Schema converter to start a schema from existing data.
JSON Schema Validator: limits and what to check
It covers common keywords from drafts 07 and 2020-12, and references must point inside the same schema.
Formats checked include email, uri, date, date-time, time, uuid, ipv4, ipv6 and hostname.
About JSON Schema Validator
Check a JSON document against a JSON Schema. It covers types, required, enum, const, string length, pattern and format, number ranges, list and object limits, $ref to local definitions, allOf, anyOf, oneOf, not, and if, then and else.
FAQs
Which drafts are supported?
The common keywords from drafts 07 and 2020-12. References must point inside the same schema.
Which formats are checked?
email, uri, date, date-time, time, uuid, ipv4, ipv6 and hostname.
Can I make a schema from my data?
Use JSON to JSON Schema Converter.