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.
JSON Schema / JSON
Community rubric · v1
The evidence
One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.
Latest evidence review ·
Definition
VerifiedThe 2020-12 validation vocabulary defines assertions such as type and numeric bounds for JSON instances. Validators must select the relevant dialect for comparison.
Measurement
VerifiedFixtures 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.
Conformance
VerifiedThe JSON Schema organization publishes language-neutral suites, including tests for instance validation against schemas. The suites target validator implementations.
CI enforcement
VerifiedAjv 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.
Getting started
UnknownNo reviewed evidence is recorded for this dimension.
Real-world adoption
VerifiedThe Ajv validator's test code loads official suite cases and remote schema fixtures. Its harness identifies exceptions for particular cases and supported drafts.
Agent guidance
VerifiedFor 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.
Agent portability
UnknownNo reviewed evidence is recorded for this dimension.
Use this standard
Agent prompt
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.