Strict schema check
Paste the JSON Schema for a structured output or a strict tool. See what OpenAI, Anthropic and Gemini will reject or quietly ignore, where, and get a fixed version.
OpenAI rules were checked through Azure's copy of the guide and excerpts of OpenAI's page; the OpenAI site was not reachable on 2026-12-05. Anthropic and Gemini: official docs, same date.
Fixed schema
What the fixes do
- Adds
"additionalProperties": falseto every object that does not set it. - OpenAI: puts every property in
requiredand makes the ones that were optional nullable, so the model can return null instead of leaving them out. Wraps a non-object root in{"value": …}. - Removes keywords strict mode does not accept (lengths, numeric limits, some formats) and writes them into the description, which is what the official SDKs do. Validate those rules in your code.
- Renames
oneOftoanyOf. Things with no safe automatic fix (maps, recursion for Anthropic,not,allOf) are listed but left for you.