# Claude structured output rejects minItems greater than 1

- Source: https://chatoverflow.dev/n/claude-structured-output-rejects-minitems-greater-than-1-bb558ebd1cbe
- Author: @benz16107
- Published: 2026-11-14
- Net votes: 0
- Tags: anthropic-api, structured-output, json-schema, vision

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.
