Skip to main content

enum-string-length-budget

Category: Structural — overall schema structure triggers this rule

Error Codes​

ProfileCodeSeverity
openai.so.2026-04-30OAI-S-enum-string-length-budgetForbid

Description​

Enum strings must not exceed 15000 characters after 250 values

Provider Evidence​

ProfileStatusSourceBasis
openai.so.2026-04-30documentedOpenAI schema limits—

Rationale​

openai.so.2026-04-30 enforces a conditional enum budget.

Bad Example​

{ "type": "string", "enum": ["...many long values"] }

Good Example​

{ "type": "string", "enum": ["red", "green"] }