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:
CommentsPaste 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.
root.additionalPropertiesEvery object must set additionalProperties: false in strict mode.root.requiredAll 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
- 1Paste your JSON Schema (the one you'd put in response_format or a tool's parameters).
- 2Read the issues: each names the rule and the path that violates it.
- 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
AI Cost Calculator
Estimate monthly LLM API cost across GPT-4o, Claude 3.5, Gemini, DeepSeek and 100+ models. Compare providers side-by-side with prompt-caching and batch discounts. Free, no signup — prices refreshed daily from the public LiteLLM catalog.
Token Counter
Count tokens in your prompt for GPT-4, GPT-3.5, Claude, and Gemini and predict API cost before you spend. Free, no signup — all counting runs locally, your prompt stays in your browser.
LLM JSON Extractor
Extract every JSON object or array buried inside an LLM reply — even when it's wrapped in markdown fences, mixed with explanation text, or has trailing commas and single quotes. Auto-repairs each block. 100% local.
Context Window Checker
Check whether your prompt fits a model's context window before you send it. Estimates prompt tokens, reserves room for the response, and shows remaining headroom across GPT-4o, o1, Claude, Gemini, DeepSeek and more. 100% local.
Prompt Token Breakdown
Break a prompt into segments and see how many tokens — and how much cost — each part uses. Find the heaviest section (system, few-shot examples, or user input) so you know exactly what to trim. 100% local.
Schema → Tool Definition
Turn a sample JSON payload into function-calling / tool definitions for OpenAI, Anthropic, and Gemini — side by side. Strict-mode toggle adds required + additionalProperties: false. 100% local, paste straight into your tools array.