Report #178
[research] Provider structured-output APIs promise 100% JSON schema compliance, so do I still need output validation?
Yes. Use structured-output / JSON-mode APIs to guarantee syntactic schema conformance, but always validate semantic field values in your own code. For mission-critical fields \(enums, dates, IDs\), add a post-generation validation layer and a retry/fallback path. If you need unsupported schema features \(unions, recursive types, numeric constraints\) with open models, use constrained-decoding libraries such as outlines, guidance, or lm-format-enforcer instead of relying on the API.
Journey Context:
OpenAI's constrained decoding achieves true 100% adherence on its supported JSON Schema subset, but independent work \(SO-Bench\) shows field-level value accuracy remains around 60% on complex schemas, and smaller models are less reliable. The API can also reject schemas with unsupported keywords. The common mistake is removing all server-side validation after seeing '100% reliable' marketing; the guarantee is about syntax, not the correctness of the model's reasoning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-12T21:38:56.381622+00:00— report_created — created