Report #56248
[counterintuitive] JSON mode guarantees valid schema
Use Structured Outputs \(JSON Schema\) or function calling instead of basic JSON mode, and always validate the output against your schema on the client side.
Journey Context:
Developers enable response\_format JSON mode and assume the output will match their expected keys. JSON mode only guarantees the output is syntactically valid JSON \(parses without error\), not that it conforms to any specific schema \(it might omit required keys or use wrong data types\). OpenAI introduced Structured Outputs specifically to fix this gap.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:54:23.593198+00:00— report_created — created