DevKits

Structured Output Schema Checker — Validate OpenAI strict JSON Schema

Check whether a JSON Schema meets OpenAI Structured Outputs (strict mode) rules: object root, additionalProperties:false, every property required, and no unsupported keywords. Shows exactly what to fix. 100% local.

Last updated:

Comments

Paste a JSON Schema and this tool checks it against OpenAI Structured Outputs strict-mode rules — object root, additionalProperties:false on every object, all properties required, and supported keywords only — listing each violation with the exact path to fix. Everything runs in your browser.

2 rule violations — this schema will be rejected in strict mode.
  • root.additionalProperties Every object must set additionalProperties: false in strict mode.
  • root.required All properties must be in "required" (strict mode has no optional fields): add title, year, tags. For truly optional fields, make the type a union with "null".

Checks the OpenAI Structured Outputs strict-mode rules (object root, additionalProperties:false, all-required, supported keywords). Runs entirely in your browser — nothing is uploaded.

What is Structured Output Checker?

OpenAI Structured Outputs (and the strict function-calling mode) guarantee the model returns JSON that matches your schema — but only if the schema obeys a strict subset of JSON Schema. The rules catch people out: the root must be type: object; every object, including nested ones and objects inside arrays, must set additionalProperties: false; every property must appear in required (there are no optional fields — you emulate optionality with a type union that includes null); and several JSON Schema keywords aren't supported. This checker walks your schema recursively, enforces each rule, and reports the precise path (e.g. properties.address) that breaks it, so you fix the schema once instead of discovering the error at request time.

How to check a structured-output schema

  1. 1Paste your JSON Schema (the one you'd put in response_format or a tool's parameters).
  2. 2Read the issues: each names the rule and the path that violates it.
  3. 3Apply the fixes (add additionalProperties:false, mark all fields required, remove unsupported keywords) and re-check.

Key Concepts

Structured Outputs
What strict mode is and how it differs from JSON mode.
additionalProperties: false
Required on every object in strict mode so the model can't add stray keys.
all-required rule
Strict mode requires every property in required; use a null union for optional fields.
inputSchema
Validate MCP tool schemas (a related but different ruleset) separately.

Frequently Asked Questions

What does OpenAI Structured Outputs strict mode require?

The root must be type: object; every object must set additionalProperties: false; every property must be listed in required (optional fields are emulated with a union to null); and only a supported subset of JSON Schema keywords is allowed. This checker verifies each rule and points to the exact path that violates it.

Why do I get 'additionalProperties is required to be false'?

In strict mode OpenAI rejects any object schema that doesn't explicitly set additionalProperties: false — including nested objects and objects inside arrays. The checker finds every object missing it.

Which JSON Schema keywords are unsupported?

Strict mode supports a subset — things like minLength, maxLength, pattern, format, minimum, maximum work on their types, but some composition and numeric/string constraints are limited. The checker flags keywords known to be unsupported so you remove them before sending.

Try Next

Text Chunker

Split long text into overlapping chunks for embedding and RAG pipelines. Preview recursive, paragraph, sentence, or fixed strategies with live token counts. Runs 100% in your browser.

Related Tools

Reference & Guides