PRODUCTION SCENARIO
An intake form parser uses output_config.format with a JSON schema. The developer adds minimum 0 and maximum 120 to the age field and additionalProperties true on the root object, and the request is rejected.
How should the schema be corrected?
Answering here is anonymous. Nothing is saved unless you sign in.
Show answer and explanation
Answer: Drop the numeric range, set additionalProperties to false, and check the range in code
The structured outputs page lists numerical constraints such as minimum and maximum as unsupported and requires additionalProperties to be set to false; recursive schemas are also unsupported. Range checks therefore belong in the application after the JSON is parsed.