๐ก๏ธ JSON Schema Validator
๐ ๅฎๅ
จ & ็จๆถ็ซฏ่็
Paste your JSON data and a JSON Schema. The validator checks type, required, properties, items, enum, format, pattern, and min/max constraints, and reports each failure with the JSONPath where it occurred. All processing in your browser.
Implements a useful subset of JSON Schema 2020-12 (type, properties, required, items, enum, const, format, pattern, min/max for strings/numbers/arrays). Advanced keywords like $ref, allOf/anyOf/oneOf, dependentSchemas, and prefixItems are not supported โ for those, use a server-side validator like ajv.
How to use
- Paste your JSON data into the left panel.
- Paste the JSON Schema you want to validate against into the right panel. Click Load sample for a worked example.
- Click Validate. If the data passes, you see a green check. Otherwise each error is listed with the JSONPath where it occurred (e.g.,
$.user.email).
Supported keywords: type (string, number, integer, boolean, object, array, null), properties, required, additionalProperties: false, items, enum, const, minimum/maximum/exclusiveMinimum/exclusiveMaximum/multipleOf, minLength/maxLength/pattern, minItems/maxItems, and format (email, uri, url, date, date-time, uuid).
Not supported: $ref, allOf/anyOf/oneOf/not, dependentSchemas, prefixItems, contains, if/then/else. For those, use ajv or a server-side validator.