GS/BS
← Standards directory
Compatibility

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

Evidence score6 / 8
6 verified · 2 unknown

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

    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.

    Inspect source ↗
  • 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.

    Inspect source ↗
  • Conformance

    Verified

    The JSON Schema organization publishes language-neutral suites, including tests for instance validation against schemas. The suites target validator implementations.

    Inspect source ↗
  • 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.

    Inspect source ↗
  • 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.

    Inspect source ↗
  • 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.

    Inspect source ↗
  • Agent portability

    Unknown

    No 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.
Read the agent skill ↗

Primary source

JSON Schema Test Suite documentation ↗