Skip to content
Tools

JSON Schema Validator

Validate JSON against a JSON Schema and see every error by path.

Local

What this tool does

This tool checks a JSON document against a JSON Schema and lists every place the data does not match, with the path to the value, the rule it broke, and a short message. A green result means the data satisfies the schema.

How it validates

The validator interprets the schema directly rather than compiling it into code. That keeps it working under this site's strict security policy, which blocks the code generation that many validators rely on. It is draft-07 oriented and covers the keywords you reach for most: type, enum, const, numeric and string bounds, pattern, common format values, array and object constraints, and the combinators allOf, anyOf, oneOf and not.

References stay local

A $ref that points inside the schema, such as #/definitions/person, is resolved. A $ref to a remote URL is not fetched, because the tool never makes network requests. If your schema depends on remote references, inline them first.

Common use cases

  • Checking that an API response matches its contract.
  • Validating a config or payload before you use it in a test.
  • Debugging why a document fails validation, error by error.

Frequently asked questions

Which draft does it support?
It is draft-07 oriented and covers the common keywords: type, enum, const, numeric and string constraints, array and object rules, and allOf/anyOf/oneOf/not.
Does it fetch remote $ref schemas?
No. Local JSON-pointer references inside the schema are resolved; remote references are never fetched, so nothing leaves your browser.

Learning resources

Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.

Feedback welcome

Found a bug in this tool, or want it to do something it does not? Tell us and we will take a look.