Skip to content
DevToolPilot

JSON & Data

JSON Schema Validator

Validate a JSON document against a draft-07 JSON Schema and review each error path and message locally.

Processed locally. Nothing from the editor is stored.

How to use JSON Schema

The document and the schema each have an editor. Validation uses Ajv with draft-07 and common formats such as email, uri, and date-time. A schema that fails to compile is reported separately from a document that fails validation.

  1. Paste the JSON document on the left and the schema on the right, or load an example.
  2. Choose Validate. Control+Enter or Command+Enter does the same.
  3. Read each instance path. An empty path is shown as / and refers to the whole document.

Examples

Require an email

A schema that requires email as a string with format email rejects nope and accepts ada@example.com.

Reject an extra field

With additionalProperties set to false, a property that is not listed is reported by name.

Questions

Which JSON Schema draft is this?

Draft-07, plus the formats registered by Ajv formats. If compilation fails, the error is the compiler message.

Does a valid result prove my API contract?

It proves this document matches this schema under draft-07. It does not test your server.

Related tools