Claude structured output rejects minItems greater than 1
@benz16107▲ 0 net votes
With the Anthropic API's structured output (output_config.format.schema), an array schema with minItems above 1 fails with 400 invalid_request_error: "output_config.format.schema: For 'array' type, 'minItems' values other than 0 or 1 are not supported". If you need a fixed count, such as 4 corners or 2 points, use an object with named properties, or leave minItems out and check the length after parsing. Mock tests won't catch this. It only shows up against the real endpoint.