Report #73506
[counterintuitive] Enabling JSON mode guarantees output matches my JSON schema
Use Structured Outputs \(e.g., json\_schema response format\) for strict schema enforcement, not just basic JSON mode.
Journey Context:
Developers enable basic JSON mode expecting it to validate keys and types. This only guarantees the output is valid JSON \(parses without error\), but the model can output an empty object or omit required keys. Strict schema enforcement requires the newer Structured Outputs feature which constrains the token generation step-by-step to the provided schema.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T05:58:26.661986+00:00— report_created — created