JSON Schema Validator
Validate JSON against a JSON Schema (Draft-07) — all errors with JSONPath locations. 100% local.
JSON Schema Basics
JSON Schema is a vocabulary for annotating and validating JSON. You write a schema document describing the shape you expect, then validate data against it. Draft-07 is the most widely supported version (AJV, jsonschema Python, etc.).
Schema → validation errors with JSONPath locations
Input
{
"type": "object",
"required": ["name", "age", "email"],
"properties": {
"name": { "type": "string", "minLength": 1 },
"age": { "type": "integer", "minimum": 18 },
"email": { "type": "string", "format": "email" }
}
}Output
$.age must be >= 18 (got 17) $.email must match format "email" (got "not-email")
Common Keywords Reference
| Keyword | Applies to | What it validates |
|---|---|---|
| type | Any | Value must be one of: string, number, integer, boolean, array, object, null |
| required | object | Array of keys that must be present |
| properties | object | Schema for each named property |
| additionalProperties | object | Whether unknown keys are allowed (false = no extra keys) |
| minLength / maxLength | string | String character count bounds |
| pattern | string | Must match this regex |
| format | string | Semantic format (email, uri, date, date-time, uuid) |
| minimum / maximum | number | Numeric range (inclusive) |
| exclusiveMinimum / exclusiveMaximum | number | Numeric range (exclusive) |
| minItems / maxItems | array | Array length bounds |
| items | array | Schema that every array element must match |
| enum | Any | Value must be one of the listed values |
| const | Any | Value must equal this exact value |
| allOf / anyOf / oneOf | Any | Logical composition: all / any / exactly one of the sub-schemas |
Schema Library
The built-in schema library contains common JSON Schema definitions for formats like GeoJSON, JSON Feed, GitHub events, and OpenAPI. Click the library icon in the schema panel toolbar to search and load a schema. This is useful for validating standard JSON formats without writing a schema from scratch.
Frequently Asked Questions
Your files stay on your computer. Dad promised.