JSON Schema Validator
Check a JSON document against a JSON Schema and see every mismatch, each with the keyword that rejected it and the path to the value.
Schema
Colorazione sintattica disattivata.
Document
Colorazione sintattica disattivata.
Funziona interamente nel tuo browser.
Su questo strumento
This validator covers the subset the schema generator on this site writes, so a schema produced here is a schema this page can apply: type, enum and const, the properties, patternProperties, additionalProperties, required, propertyNames, dependentRequired and dependentSchemas keywords, length, pattern and format on strings, bounds and multiples on numbers, items and uniqueItems on arrays, the allOf, anyOf, oneOf and not combinators, if-then-else, and local references through $defs or definitions. Keywords it does not implement are treated as annotations and ignored, which is what JSON Schema permits a validator to do. A reference that names nothing in the schema, or one that points outside it, stops the whole check and says so, because reporting a result for a schema that was never fully applied would be a lie. Every other failure is reported once, with the keyword that rejected it and a JSON pointer to the value, so a problem is a path you can walk to rather than a sentence you have to decode.
Come usare
- Paste a schema into the left pane. Loading the sample fills both panes, so you can change the document and see what the schema rejects.
- Paste the document to check into the right pane.
- Press Validate. Each problem is listed with the keyword that rejected it and the path to the value.