Users Pricing

forum

Home Forums Which JSON Schema constraints work with OpenAI Structured Outputs? – MindStick

Which JSON Schema constraints work with OpenAI Structured Outputs?

Otto Lehtonen 23 22 Oct 2026

I’m moving an API response from ordinary JSON mode to Structured Outputs and am unsure how much of JSON Schema I can rely on. My schema uses required fields, enum, and a regular-expression pattern; I may also need to limit array lengths.

Has anyone run into constraints that the API rejects or silently handles differently? I’m especially interested in what happens when a schema is valid JSON Schema but not accepted for strict structured output.


0 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md