Skip to main content

array-items

Category: Structural — overall schema structure triggers this rule

Error Codes​

ProfileCodeSeverity
openai.so.2026-04-30OAI-S-array-itemsForbid

Description​

Array schemas must declare an items schema

Provider Evidence​

ProfileStatusSourceBasis
openai.so.2026-04-30documentedOpenAI supported schemas—

Rationale​

openai.so.2026-04-30 rejects array schemas that omit the items keyword.

Bad Example​

{ "type": "array" }

Good Example​

{ "type": "array", "items": { "type": "string" } }