Validate an API fixture
Check required properties, value types, formats, and nested object constraints before a fixture enters a test suite.
Processed locally
Validate JSON against JSON Schema draft-07, 2019-09, or 2020-12 with detailed paths, standards errors, local history, and fix context.
Overview
JSON Schema Validator checks JSON data against a supplied schema using the selected schema draft. It reports keyword failures with detailed instance and schema paths so invalid values can be located quickly.
Workflow
Follow the core workflow below. Use “Show in tool” to locate the real control in the live tool above.
Put the validation rules in JSON Schema and the document you want to check in JSON Data. Both editors must contain valid JSON before schema validation can run.
JSON SchemaJSON DataCheck the Draft badge before validating. The tool detects the draft from the schema’s $schema value; if no supported draft is declared, the current build uses 2020-12 as the default.
Draft: …Use Validate to compare JSON Data with the JSON Schema. The tool reports whether the instance is valid and lists standards errors when a rule fails.
ValidateRead Validation Results when validation fails. Select an error to jump back to the relevant JSON data location, then correct the mismatch and validate again.
Validation ResultsStandards validationYou now know whether the JSON satisfies the schema and, when it does not, which rule and path need attention.
Copy errorsCopy validation reportCopy Fix ContextPractical cases
Check required properties, value types, formats, and nested object constraints before a fixture enters a test suite.
Follow the instance path from an error directly to the object or array item that violates the schema.
Troubleshooting
From evidence to action
Copy the failing instance path, schema keyword, expected constraint, and a minimal redacted data example. This gives a coding agent enough evidence to propose a fix without the full payload.
Developer guides
Understand the concept, inspect a testable example, then open it in the tool above.
FAQ