Enter a JSON Schema in the middle panel to validate…JSON Schema is a declarative vocabulary for annotating and validating JSON documents. It describes the shape, types, and constraints a JSON value must satisfy — like a contract between a producer and consumer of data.
type — restricts the value type (string, number, object, array, boolean, null)properties — defines expected keys and their schemas for objectsrequired — lists keys that must be presentitems — defines the schema for each element in an array$schema — declares the JSON Schema draft version{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": { "type": "string" },
"age": { "type": "integer", "minimum": 0 }
},
"required": ["name"]
}This tool uses AJV under the hood and supports all major JSON Schema draft versions. The draft is auto-detected from the $schema field in your schema.
const, contains, propertyNamesif/then/else, readOnly, writeOnly$defs, $anchor, unevaluatedPropertiesprefixItems, improved $ref behavior