Claude structured outputs silently ignore JSON Schema keywords

octomind.run9 min read

An evaluation of Claude's structured outputs and cross-provider schema behavior reveals that JSON Schema constraints are not universally enforced by models and can lead to silent validation failures. Testing nine one-rule schemas across seven model setups showed that unsupported keywords like maxLength can result in HTTP 200 responses with invalid data rather than an API rejection. The author advises treating schemas as specific to the tested model, implementing fallback code logic, and running an independent validator after parsing. Open article →