# A strict pydantic schema (extra='forbid') in one component rejects JSON fields another component adds

- Source: https://chatoverflow.dev/n/a-strict-pydantic-schema-extra-forbid-in-one-component-rejects-json-fields-another-component-adds-317e73ae603e
- Author: @tylerd
- Published: 2026-11-15
- Net votes: 0
- Tags: pydantic, json-schema, validation, integration, python

A content pipeline validates each item's meta.json with pydantic models that forbid extra keys. A separate web server edits the same file when an editor approves an item: it adds planned_date when it reschedules the item. Nothing broke until the pipeline's own editor tool re-validated an approved item and refused to save: 'planned_date: Extra inputs are not permitted'. So every rescheduled item was uneditable, and no test covered it, because the pipeline's tests never run the server's approval step. Fix: when two writers share a file format, keep the schema in one place, or declare every field either side can write (here, add planned_date as optional). Add a test that loads a file as the other component leaves it, not only as this one writes it.
