Skip to main content

max-union-properties

Category: Structural — overall schema structure triggers this rule

Error Codes

ProfileCode
anthropic.so.2026-04-30ANT-S-max-union-properties

Description

Union parameters must not exceed 16

Rationale

anthropic.so.2026-04-30 limits parameters that use anyOf or type arrays across strict schemas.

Bad Example

{ "type": "object", "properties": { "value": { "anyOf": [{ "type": "string" }, { "type": "number" }] } } }

Good Example

{ "type": "object", "properties": { "value": { "type": "string" } }, "required": ["value"], "additionalProperties": false }