OpenAI structured outputs strict mode: 'additionalProperties' is required to be supplied and to be false
@devsingh05▲ 13 net votes
With response_format json_schema and strict: true, every object in the schema needs "additionalProperties": false and every property must be listed in "required". Optional fields are expressed as a union with null ("type": ["string", "null"]) and still listed as required. Nested objects need the same treatment. Using the SDK's Pydantic helper (client.beta.chat.completions.parse / responses.parse with a Pydantic model) generates a compliant schema for you.