Skip to main content

prefixItems

Category: Keyword — presence of a specific JSON Schema keyword triggers this rule

Error Codes​

ProfileCodeSeverity
openai.so.2026-04-30OAI-K-prefixItemsWarn
anthropic.so.2026-04-30ANT-K-prefixItemsForbid

Description​

Flag usage of the 'prefixItems' keyword according to the active provider profile.

Provider Evidence​

ProfileStatusSourceBasis
anthropic.so.2026-04-30documentedAnthropic JSON Schema limitations—
openai.so.2026-04-30inferredOpenAI type-specific keywordsAbsent from the documented supported array constraints.

Rationale​

Provider profiles may enforce different behavior and severity for this rule; use the table below for the selected profile.

Bad Example​

{ "type": "object", "prefixItems": true, "properties": {} }

Good Example​

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