{·} AI OUTPUT CHECK

DIAGNOSTIC FIELD GUIDE / 02

Understand the error.
Check the right place.

A failed JSON contract check tells you about structure, not truth. Use this guide to distinguish a response problem from a contract problem before changing either.

01 / LOCATE

Response path or schema path?

For a response-validation error, the response path locates the failing value. The Contract path locates the rule inside the schema. For schema syntax, invalid schema or unsupported-schema states, read the contract editor instead. The value tree always shows the response.

/lines/0/quantityResponse: quantity in the first line item.#/properties/lines/items/properties/quantity/typeContract: the type rule applied to each line item’s quantity.

Paths use JSON Pointer escaping: ~1 represents a slash in a property name, and ~0 represents a tilde. (root) means the whole document. Missing required fields may have a path but no tree node.

Inspection is fail-fast. Fix the reported check and run again; a later failure can become visible. Up to 100 diagnostics are shown. Help links contain only fixed rule anchors, never your inputs or paths.

02 / SCOPE

The supported Draft 2020-12 subset

Paste plain JSON and an object or boolean schema. An omitted dialect uses Draft 2020-12; other dialects are rejected. Use type explicitly: type-specific constraints do not constrain unrelated value types. Examples are original, fictional fixtures.

type · properties · required · additionalProperties · items · minItems · maxItems · minLength · maxLength · minimum · maximum · exclusiveMinimum · exclusiveMaximum · enum · const · allOf · anyOf · oneOf · not · title · description · $schema

title and description annotate a schema; they do not validate the response. properties and items apply child schemas. Boolean true accepts any parsed value, and false rejects all values. An empty object schema accepts any parsed value, subject to this tool’s input limits.

Depth 32, 2,000 schema nodes, 100 entries per schema array, and a 2-second terminable worker. No references, patterns, formats, custom keywords, defaults, coercion or repair. Declaring __proto__ in a properties map is unsupported. Duplicate keys, nonfinite numbers, unsafe integers and number underflow are rejected. Other decimals use JavaScript floating-point precision.

Response input: 256 KiB UTF-8. Contract input: 64 KiB UTF-8. The tree shows at most 300 nodes and 100 children per branch. Compilation needs runtime code generation; a restrictive CSP may prevent inspection. No CSP is weakened to enable it.

CHECK 01 / type

Wrong value type

A quoted number is a string. This inspector does not convert it to a number. Declare type explicitly: a numeric bound alone does not reject strings.

Response

"12"

Contract

{"type":"number"}

Next step: Use a numeric value only if that is what the application requires; otherwise review the contract.

Try it in the inspector ↗

CHECK 02 / required

A required field is absent

properties describes a field when present; required makes its presence mandatory. A missing-field response path points to a place that does not yet exist in the value tree.

Response

{}

Contract

{"type":"object","required":["total"]}

Next step: Supply the missing field from an authoritative source. Do not invent a value just to pass validation.

Try it in the inspector ↗

CHECK 03 / additionalProperties

An extra field is not allowed

additionalProperties: false rejects fields not declared by properties at that object level. The diagnostic points to the extra response field, not a missing contract entry.

Response

{"extra":1}

Contract

{"type":"object","additionalProperties":false}

Next step: Review whether the field belongs in the application contract before removing it or widening the schema.

Try it in the inspector ↗

CHECK 04 / minLength · maxLength · minItems · maxItems

A string or array is outside its bounds

minItems and maxItems count array entries. minLength and maxLength count Unicode code points, which can differ from visible characters. These rules do not constrain other value types without type.

Response

[]

Contract

{"type":"array","minItems":1}

Next step: Check whether the response is incomplete or the chosen bound is too strict for the intended task.

Try it in the inspector ↗

CHECK 05 / minimum · maximum · exclusiveMinimum · exclusiveMaximum

A number is outside its range

minimum and maximum include their boundary. exclusiveMinimum and exclusiveMaximum exclude it. Numeric strings are not coerced, and JavaScript decimal precision still applies.

Response

0

Contract

{"type":"number","exclusiveMinimum":0}

Next step: Review units, intended range and the original value. This check cannot establish factual accuracy.

Try it in the inspector ↗

CHECK 06 / enum · const

The value is not an allowed choice

enum accepts one of its listed values; const requires exactly its single value. Equality includes value type and structure, not just how a value looks when printed.

Response

"pending"

Contract

{"enum":["ready","done"]}

Next step: Use the application’s agreed vocabulary rather than silently mapping unknown values.

Try it in the inspector ↗

CHECK 07 / oneOf · anyOf · allOf · not · false schema

A schema branch did not match

allOf requires every branch, anyOf at least one, and oneOf exactly one. Overlapping oneOf branches can reject a value that matches more than one. not inverts its subschema; a false schema rejects every value. Branch failures may produce several diagnostics even in fail-fast mode.

Response

2

Contract

{"oneOf":[{"type":"number"},{"type":"integer"}]}

Next step: Read the contract path to identify the branch. Fix the contract’s overlap or the response as appropriate, then inspect again.

Try it in the inspector ↗

CHECK 08 / response · contract

JSON parsing or input limits stopped inspection

Response and contract must each be plain JSON, not Markdown fences or JavaScript. Check the reported state: syntax means parsing failed; limit means a byte, depth, duplicate-key or numeric-loss guard stopped inspection.

Response

{"total":}

Contract

{}

Next step: Correct syntax in the named editor. For a limit, simplify the input or use a suitable offline validator. This tool does not repair input.

Try it in the inspector ↗

CHECK 09 / schema

The contract itself is invalid

A schema must be an object or boolean, and keyword values must satisfy the Draft 2020-12 meta-schema. A schema-state path belongs to the contract, not the response. The response value tree is not a schema editor.

Response

{}

Contract

{"required":"total"}

Next step: Use an array of unique strings for required, and review the documented value shape of the failing keyword.

Try it in the inspector ↗

CHECK 10 / unsupported

The contract is outside this subset

Unknown keywords, references (including local references), other dialects, nested dialect declarations and __proto__ declarations in properties are rejected explicitly. A valid general-purpose JSON Schema may still be unsupported here.

Response

{}

Contract

{"$ref":"#"}

Next step: Use a validator that supports the needed feature. Do not delete a constraint merely to make the tool accept a contract.

Try it in the inspector ↗

CHECK 11 / runtime · timeout

Execution could not finish

The worker is terminable and has a two-second budget. Browser restrictions, blocked runtime code generation or blocked workers can prevent inspection. A timeout is not evidence that the response failed its contract.

Response

{}

Contract

{}

Next step: Simplify the input or use an appropriate trusted environment. Do not weaken your Content Security Policy to run this tool.

This small valid pair is a recovery check, not a timeout reproduction.

Try it in the inspector ↗

03 / METHOD

What this check can establish

The browser worker parses bounded JSON, rejects unsupported schema keywords, compiles the contract with Ajv2020, and checks the response without defaults, coercion or removal of extra fields. Editing inputs, resetting, clearing or canceling terminates the current operation; stale worker results are discarded.

Inputs are never saved, sent to a model, or added to URLs. Copied diagnostics may include property names and parser excerpts; review them before sharing. Clear removes this workspace’s input and diagnostics; it cannot retract text you already copied.

A structural pass is not factual verification, a security review, a compliance certification or a guarantee of model-provider compatibility.

Implementation and original examples reviewed 9 November 2026 against the app’s tests and Ajv’s keyword documentation. The installed package and lockfile pin Ajv 8.20.0; its MIT license was reviewed on that date. No third-party datasets, examples or graphics are reproduced.

Background sources: JSON Schema Draft 2020-12 and Ajv security guidance, originally reviewed 2 October 2026. This release does not imply those older source reviews were refreshed.

Return to your inspection workspace ↗