Fidument Tools · Beta version

How do I find fields that fail a JSON Schema rule?

Validate JSON using the supported JSON Schema 2020-12 vocabulary. Read locations and violated rules in the report.

How do I find fields that fail a JSON Schema rule?

How to use this tool

  1. Select JSON data

    Choose the document containing the structure and values you want to check.

  2. Select the schema

    Add a JSON Schema file. Use local references such as #/$defs/item when needed.

  3. Run validation

    Download json-schema-report.json and review valid, the reported paths and violated keywords.

Resolving further errors

After correcting the field shown in the report, run validation again. A later run may reveal additional issues.

Who is it for?

  • Integration testers and people preparing data for imports

Input

  • JSON data and JSON Schema in UTF-8

Output

  • json-schema-report.json

Capabilities

  • Choose the document containing the structure and values you want to check.
  • Add a JSON Schema file. Use local references such as #/$defs/item when needed.
  • Download json-schema-report.json and review valid, the reported paths and violated keywords.

Limitations

  • Up to 256 KiB per file. Supports a subset of the 2020-12 dialect. References must stay in the schema file and must be acyclic.
  • The format keyword is an annotation. Diagnostics may stop at the first failure.
  • Files are processed on your device in the browser.

Example use

The document has count equal to 0. A minimum of 1 produces a minimum violation at /count.

Example file workflow · JSON Schema 2020-12 validator. The document has count equal to 0. A minimum of 1 produces a minimum violation at /count.
Example data to enter in the form

Questions and answers

Can the validator load a schema from a URL?

It reads the two selected files and supports local JSON Pointer references. External references are rejected.

Related tools

JSON Schema 2020-12 validator

Check access and export conditions in the app. A product description does not grant access.