Skip to main content

max-depth

Category: Structural — overall schema structure triggers this rule

Error Codes

ProfileCode
openai.so.2026-04-30OAI-S-max-depth

Description

Object nesting depth must not exceed 10 levels

Rationale

openai.so.2026-04-30 limits object nesting depth to 10 levels.

Bad Example

{ "type": "object", "properties": { "nested": { "type": "object", "properties": { "too_deep": { "type": "object" } } } } }

Good Example

{ "type": "object", "properties": { "name": { "type": "string" } } }