JSON Schema Validator
Check JSON documents against a locally processed Draft-07 subset. Diagnose required fields, types and constraints, review multiple fixtures and download reproducible reports.
Browser-local · No upload · No remote $ref fetch · No automatic data changes
Schema validation workbench
Validate a local contract, inspect failures, then export evidence. Engine scope: documented Draft-07 subset, not full conformance.
Unknown modern keywords and Draft 2019-09/2020-12 schemas are rejected, not silently ignored.
Local reference schemas 0 local references
References resolve only to supplied local IDs and JSON Pointer fragments. No network requests are made.
Whole files are validated as individual instances. An array stays one instance. Maximum 32 fixtures and 8 MiB total.
Validate to review your data against the selected rules.
Current structured report preview
How to use JSON Schema Validator
- Enter a supported JSON Schema and JSON value. The V2 local engine supports a documented, bounded subset of Draft-07 rules, not full draft conformance or newer drafts.
- Choose all-errors reporting and unknown-format handling. Use the valid or failing example to see the expected workflow.
- Validate with the local module Worker when supported (a small-input fallback exists), inspect findings, then download a structured report.
When to use this tool
Check fixture data against a draft-07-compatible contract before using it in a test or integration. Syntax-valid JSON can still fail required-field, type or value constraints.
Schema validity and instance validity are different
A malformed JSON document cannot be evaluated as an instance. A schema can also be syntactically valid JSON but unsupported or invalid as a schema. A successful validation means the instance passed the constraints in that schema; it does not establish the data's truth, authorization or suitability for an application. The unknown-format checkbox rejects unrecognized format names; it does not enable general Ajv strict mode. Known formats use limited best-effort checks.
Worked example
Schema: {"type":"object","required":["name"],"properties":{"name":{"type":"string"}}}
Valid instance: {"name":"PixelOkay"}
Failing instance: {"name":42} Validate a small record contract without silently repairing it
Original schema practice input
{"type":"object","required":["id","quantity"],"properties":{"id":{"type":"string"},"quantity":{"type":"integer","minimum":1}},"additionalProperties":false} | Instance | Check |
|---|---|
{"id":"0012","quantity":2} | Matches the stated constraints. |
{"id":"0012","quantity":"2"} | Quantity is text, not an integer. |
{"id":"0012","quantity":0} | Quantity is below the chosen minimum. |
- Paste the authored schema and one instance at a time. Distinguish JSON syntax or schema-compilation errors from a completed instance-validation result.
- Review the failed constraint and location. Correct data only when you know the intended meaning; this page does not coerce strings to numbers or insert defaults.
- Revalidate after the correction and download the report when needed. Treat a worker failure or unsupported schema as inability to validate, not a valid verdict.
The table describes expected schema rules, not a freshly executed report. A passing instance is not proof of inventory, authorization or business truth. Keep the schema aligned with the pinned engine's supported dialect. Use JSON Diff to review a correction or JSONPath Tester to locate records for inspection.
Limits and output checks
This self-contained V2 module is not Ajv 6. It implements a bounded Draft-07 subset; Draft 2019-09/2020-12, dynamic anchors and full specification conformance are not claimed. No remote schema fetching is performed. Inputs use explicit V2 byte and step limits. Worker operations have a 4-second deadline and a limited fallback when blocked. Review format behavior against the schema dialect your application actually uses.
Reference: JSON Schema validation concepts.
Exact coverage and limitations
Validated constraints include type, required properties, object/array/string/number limits, enum, const, properties, patternProperties, additionalProperties, dependencies, items, contains, allOf, anyOf, oneOf, not, if/then/else and local JSON Pointer $ref. This is not full Draft-07 conformance. Cross-file references require an explicitly imported local schema; external network retrieval is disabled. Only supported format names receive basic syntax checks; unknown names are ignored unless Reject unknown formats is selected.
Schema compilation errors, malformed documents, unresolved references, unsupported dialects and invalid instance constraints produce separate results. Validation is not security scanning, official platform acceptance, proof of data authenticity or execution of the supplied JSON. Full input is included only in an explicitly exported editable project, not in a default report.
Working example: user-defined creator metadata
Load the Creator chapter metadata sample and its failing instance. Validation identifies a missing chapter label and a negative timestamp. Fix those fields in Data, rerun, then export a CSV matrix or project file. This validates your own structural rules, not YouTube's upload requirements.
Frequently asked questions
Why does a modern schema fail to compile?
Its draft or keyword may not be supported by the bounded local Draft-07 subset engine. For full Draft-07 or a modern draft, use a standards-compliant validator matching your application.
Does this change or coerce my JSON data?
No type coercion or default insertion is enabled by this page. The verdict describes the supplied instance.
What happens when parsing or compilation fails?
The page reports inability to validate. The downloadable report distinguishes that state from a completed valid/invalid instance verdict.
A practical workflow
Use a supported schema to describe required properties and validate a sample instance. Read the result as a check against that supplied schema.
Read the scope alongside the result
The V2 limited Draft-07 engine does not implement modern drafts or remote fetching. Compilation failure is different from a completed invalid-instance result; data is not coerced or given defaults.