# JSON Schema Test Suite

Verify a validator against its declared dialect

Check a JSON Schema validator against the official instances and expected validity values for its supported dialect. Optional behaviors and unsupported vocabularies need their own results.

Category: Compatibility
Languages: JSON Schema, JSON

## Standard evidence

Rubric v1 · 6/8 verified · 2 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — The 2020-12 validation vocabulary defines assertions such as type and numeric bounds for JSON instances. Validators must select the relevant dialect for comparison. Reviewed 2026-11-28. [Source](https://json-schema.org/draft/2020-12/json-schema-validation)
- **Measurement** (verified) — Fixtures pair a schema and instance with a boolean expected result. The implementer's runner compares the validator's decision with that value under the selected dialect. Reviewed 2026-11-28. [Source](https://github.com/json-schema-org/JSON-Schema-Test-Suite/blob/main/validation/README.md)
- **Conformance** (verified) — The JSON Schema organization publishes language-neutral suites, including tests for instance validation against schemas. The suites target validator implementations. Reviewed 2026-11-28. [Source](https://github.com/json-schema-org/JSON-Schema-Test-Suite)
- **CI enforcement** (verified) — Ajv runs its test-ci script across its build matrix. That script runs the spec tests, whose official JSON Schema fixtures assert the expected boolean results. Reviewed 2026-11-28. [Source](https://github.com/ajv-validator/ajv/blob/master/.github/workflows/build.yml)
- **Getting started** (unknown) — No reviewed evidence is recorded for this dimension.
- **Real-world adoption** (verified) — The Ajv validator's test code loads official suite cases and remote schema fixtures. Its harness identifies exceptions for particular cases and supported drafts. Reviewed 2026-11-28. [Source](https://github.com/ajv-validator/ajv/blob/master/spec/json-schema.spec.ts)
- **Agent guidance** (verified) — For one failing fixture, choose its dialect, configure the declared remote schemas and validate its instance. Compare the returned boolean with valid; isolate an unsupported optional test or a keyword mismatch before changing the validator. Reviewed 2026-11-28. [Source](https://github.com/json-schema-org/JSON-Schema-Test-Suite/blob/main/validation/README.md)
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

Identify the validator implementation and its declared dialect. Load the official validation suite at a recorded revision and run the applicable fixtures. Compare each returned boolean with the test’s expected valid value, preserving skips. For a mismatch, isolate the keyword and instance and consult the dialect specification before changing the implementation.

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://github.com/json-schema-org/JSON-Schema-Test-Suite)
- [Agent skill](/skills/json-schema-test-suite/SKILL.md)
