maxLength
Category: Keyword — presence of a specific JSON Schema keyword triggers this rule
Error Codes
| Profile | Code |
|---|---|
| anthropic.so.2026-04-30 | ANT-K-maxLength |
Description
Flag usage of the 'maxLength' keyword, which is not supported by anthropic.so.2026-04-30
Rationale
The anthropic.so.2026-04-30 structured-output provider rejects the 'maxLength' keyword. Schemas using this keyword may be rejected or silently altered.
Bad Example
{ "type": "object", "maxLength": true, "properties": {} }
Good Example
{
"type": "object",
"properties": {
"name": { "type": "string" }
}
}