Report #49158
[counterintuitive] json mode guarantees schema validation
Use structured outputs with JSON Schema enforcement \(e.g., response\_format with json\_schema\) or external validation \(Pydantic\) to guarantee schema compliance, not just basic JSON mode.
Journey Context:
Developers enable basic JSON mode and assume the output will match their expected schema \(required fields, correct types\). JSON mode only guarantees the output is syntactically valid JSON, not that it conforms to any specific schema. The model might output placeholder data or omit required keys, breaking downstream parsers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:00:04.638277+00:00— report_created — created