Skip to main content

max-depth

Category: Structural — overall schema structure triggers this rule

Error Codes​

ProfileCodeSeverity
openai.so.2026-04-30OAI-S-max-depthForbid

Description​

Object nesting depth must not exceed 10 levels

Provider Evidence​

ProfileStatusSourceBasis
openai.so.2026-04-30live_verifiedOpenAI schema limitsObserved from the OpenAI API; the published nesting limit is stale for the tested target.

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" } } }