Developer

Runs in your browser. No file uploads for processing.

JSON Schema Sample Coverage

See which declared JSON Schema keys your samples actually exercise, including required-only paths, without uploading sample data.

Loading tool...

How to measure which JSON Schema keys your samples cover

  1. Paste the schema and an array of sample instances

    Each array element is one instance. The checker walks direct properties and required names, including required-only keys.

  2. Separate missing keys from missing parents

    In the example, only two of five samples contain a settings object, so its slash-named child is eligible twice. A present null counts as presence, not as valid against a type.

  3. Download a structural report

    Review escaped JSON Pointer paths and coverage counts. The JSON excludes sample values but still reveals the schema's field names.

Use cases

  • See which optional response fields never appear in a set of test fixtures.
  • Find required keys missing in eligible sample objects without confusing them with absent or non-object parents.

Limits and privacy

  • Schema JSON object up to 256 KiB; up to 200 samples and 512 KiB, 300 paths and 12 levels of direct object nesting.
  • Does not validate types, branches or references, or traverse arrays. Only direct declared properties and required names are measured. It does not infer global requirements through optional parents.

The tool processes inputs in your browser. Account features and usage analytics are separate.

Frequently asked questions

What if I have samples but no schema yet?

Use the JSON Schema Generator to infer a starting schema from sample data, review its assumptions and then use this checker on separate test fixtures.

Is this a JSON Schema validator?

No. This measures key presence across fixtures. It does not evaluate value types, patterns, references, conditions or other schema assertions.

Does a present null count as coverage?

Yes. An own key whose value is null still exists. A type assertion may reject that value; the coverage checker does not evaluate it.

How do you count a child if its parent is missing or an array?

That sample is outside the child's eligible denominator. Missing ancestors and present non-object ancestors are shown separately.

Does a required key need a properties definition?

No. Direct required names also get rows even when properties does not define them. Required status refers only to the immediate parent object.

Do my samples or their values appear in the downloaded report?

No sample values are exported or uploaded. The report contains counts and JSON Pointer paths, which can still disclose schema field names.

Related tools