Skip to main content

array-items

Category: Structural — overall schema structure triggers this rule

Error Codes

ProfileCode
openai.so.2026-04-30OAI-S-array-items

Description

Array schemas must declare an items schema

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