Structured Output Schema Tester

Test OpenAI structured output JSON schemas against sample responses.

Ad placeholder (leaderboard)

Catch structured-output failures before production

OpenAI’s strict structured outputs enforce a precise contract: every property must be declared, all of them must be in required, and additionalProperties must be false. A response that looks fine to the eye can still fail validation because of one undeclared field or one missing required key. This tool compares your schema against a sample response and reports every mismatch with its exact path.

How it works

Paste your JSON Schema and a sample response object. The tool parses both, then walks the schema recursively against the data. At each level it checks the declared type, confirms every required field is present, recurses into nested objects and array items, and — when additionalProperties is false — flags any property in the data that the schema does not declare. Each problem is reported with a dotted path like data.address.zip so you can pinpoint it instantly.

Tips and notes

For strict mode, remember the two rules that trip people up most: list all properties in required, and set additionalProperties: false on every object. If the model keeps adding a stray field, tighten the prompt or the schema description rather than loosening the contract. Everything runs locally, so sensitive schemas stay in your browser. Use the report iteratively — fix one path, re-run, and repeat until the response is fully conformant before wiring the schema into your API call’s response_format.

Ad placeholder (rectangle)