OAI-SE Structured Outputs & Strict JSON Schemas MEDIUM
PRODUCTION SCENARIO
Thorne Reconciliation parses model output into a payments table on gpt-5.6-terra using the Responses API. The parser fails on Markdown code fences and on records missing the invoice_id field.

Which configuration enforces the schema on a completed, non-refusal response?

Answering here is anonymous. Nothing is saved unless you sign in.

Show answer and explanation

Answer: text.format json_schema, strict true, additionalProperties false, every field required

On the Responses API structured output is configured under text.format, and strict mode requires additionalProperties false on every object with every property listed in required, which is what guarantees the shape on a completed, non-refusal response. additionalProperties true is rejected under strict, listing only invoice_id in required is rejected for the same reason, and response_format is the Chat Completions field and is not read on a Responses request.
Free

Keep practicing OAI-SE

24 original OAI-SE practice questions, each with an explanation and a source link. No account needed.

Start free practice set → Timed, explained, free