Validate JSON against a JSON Schema
Check JSON data against a JSON Schema (draft 4, 7, 2019-09 or 2020-12) and see every error with its JSON Pointer path and the rule broken.
Check JSON data against a JSON Schema (draft 4, 7, 2019-09 or 2020-12) and see every error with its JSON Pointer path and the rule broken.
Runs entirely in your browser: nothing you type is sent or stored.
/items/0/price is the property price of the first item of items; click the pointer to select the value in the data.
| Keyword | What it checks |
|---|---|
type | |
properties | |
required | |
additionalProperties | |
items | |
enum, const | |
minimum, maximum | |
minLength, pattern | |
format | |
$ref | $defs. |
anyOf, oneOf, allOf |
$schema keyword at the top of a schema says which one it follows, and the validator uses it; without it, the latest, 2020-12, applies. You can also force a draft.
exclusiveMaximum is a boolean there.if / then / else and const.$defs, dependentRequired, unevaluatedProperties.prefixItems for tuples; it is the draft of OpenAPI 3.1.