Beyond Structured Outputs: The Validation Layer LLMs Still Need
Structured outputs (constrained decoding) guarantee that an LLM’s response is valid against your JSON Schema. They do not guarantee that the response is correct, because providers implement only the subset of JSON Schema that compiles to a grammar: no string length limits, no numeric bounds, no minItems above 1