Skip to main content

all-properties-required

Category: Structural — overall schema structure triggers this rule

Error Codes

ProfileCode
openai.so.2026-04-30OAI-S-all-properties-required

Description

Every property must be listed in the required array

Rationale

Some providers reject schemas with optional object properties.

Bad Example

{ "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "number" } }, "required": ["name"] }

Good Example

{ "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "number" } }, "required": ["name", "age"] }