Skip to main content

minItems-restricted

Category: Restriction — a keyword value outside the allowed set triggers this rule

Error Codes​

ProfileCodeSeverity
anthropic.so.2026-04-30ANT-K-minItems-restrictedForbid

Description​

Restrict values of the 'minItems' keyword to those accepted by anthropic.so.2026-04-30

Provider Evidence​

ProfileStatusSourceBasis
anthropic.so.2026-04-30documentedAnthropic JSON Schema limitations—

Rationale​

anthropic.so.2026-04-30 only supports specific values for the 'minItems' keyword. Using unsupported values will cause validation errors at the API level.

Bad Example​

{ "type": "object", "minItems": "invalid-value", "properties": {} }

Good Example​

{ "type": "object", "minItems": 0, "properties": {} }