- What is JSON Schema?
- JSON Schema is a declarative language for describing the structure of a JSON document — required fields, value types, formats, constraints. It separates the shape of valid data from the code that consumes it, so you can validate inputs at the boundary instead of scattering checks throughout your codebase.
- Which draft does this validator support?
- This tool uses Ajv, the fastest open-source JSON Schema validator. It supports drafts 04, 06, 07, 2019-09, and 2020-12. The draft is detected from the schema's $schema property, with 2020-12 as the default.
- What formats are recognized?
- The "format" keyword recognizes email, uri, uuid, date, date-time, time, ipv4, ipv6, hostname, regex, and several others via ajv-formats. Use these for common patterns instead of writing your own regex.
- What does additionalProperties: false do?
- It rejects any property not declared in the schema. This catches typos in keys — without it, sending {"emial": "x"} would pass validation because the misspelled "emial" is ignored. Set it on every object you control.
- How is this different from TypeScript or Zod?
- TypeScript checks at compile time and disappears at runtime. JSON Schema and Zod check at runtime. JSON Schema is portable across languages (Python, Go, Rust, Java all have validators) and is the format used by OpenAPI, AsyncAPI, and most config tools. Zod is JavaScript-only but generates types automatically.
- Is my data private?
- Yes. Both the schema and the data stay in your browser. Ajv compiles the schema into a JavaScript validation function locally, then runs it against your data. Nothing is uploaded.