Developer tools
Offline JSON Schema validator
Validate JSON against a supported draft 2020-12 subset.
Processed locally
Checks run locally. Unsupported schema features stop validation; they never produce a valid result.
Your answer will appear here.
Help and method
Supports types, object/array rules, comparisons, combinators and acyclic local JSON Pointer references. No external references, format, pattern, multipleOf, unevaluated rules or custom vocabularies. Limits: 100,000 UTF-16 units per input, depth 32, 1,000 array items and schema nodes, 10,000 JSON nodes. Uses JavaScript numbers; unsafe integers are rejected. Stops at the first failure.
JSON Schema 2020-12@cfworker/json-schemaMethods and reliabilityWorked example
An example you can try or adapt to your own values.
- JSON Schema
- {"type":"object","required":["name"],"properties":{"name":{"type":"string"}}}
- JSON instance
- {"name":"Ada"}
Result
Valid within supported subset