Users Pricing

forum

Home Forums Why does an OpenAI structured response sometimes not match my JSON schema? – MindStick

Why does an OpenAI structured response sometimes not match my JSON schema?

Stefano Coppola 54 23 Oct 2026

I’m using strict structured outputs with the OpenAI Responses API, but I’m unsure what to expect when the model refuses a request. Can a refusal come back outside the schema I supplied, and if so, what should a client check before trying to parse the response as ordinary JSON?

I’m interested in how people handle this in production, especially when downstream code assumes every successful API response has the same fields.


0 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md