Asked about Asking for JSON versus guaranteeing it
What does a response schema guarantee?
An answer that works
That the output is structurally valid and matches the declared types. It guarantees nothing about whether the values are correct. A schema will happily return well-formed JSON full of invented data.
Reading an answer is not being able to give one. The section that teaches this is Asking for JSON versus guaranteeing it, 2 hours of Structured output.
Learn this properlyAlso asked about Structured output
Your extraction pipeline returns malformed JSON 5 percent of the time. What are the likely causes?How does constrained decoding actually work?Should every field be required?Why does field order in a schema matter?How would you reduce invented values in an extraction pipeline?Your classification enum has an 'other' option that is now used 30% of the time. What does that tell you?How would you measure the accuracy of an invoice extraction pipeline?When would you use a batch API?
All 10 questions on Structured output