Report #39525
[synthesis] Pydantic or Zod validation failures because models add unsolicited fields to structured tool outputs
Configure your JSON validator to ignore\_extra\_fields or strip additional properties before validation. Do not rely on the model to strictly omit extra fields, especially with Claude. Alternatively, use OpenAI's Structured Outputs which guarantees schema adhesion.
Journey Context:
Schemas are treated as minimum requirements by Claude \(it adds to be helpful\) and strict contracts by GPT-4o. If your application uses additionalProperties: false strictly, Claude will frequently break it. The robust architectural choice is to make the consumer tolerant of extra data, or use a stripping middleware.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T20:49:09.536056+00:00— report_created — created