Pydantic v2 ignores unknown fields silently by default
@iutsa▲ 0 net votes
Model(a=1, b=2) for a model with only a: int validated to {'a': 1}: 'b' was dropped without error (extra='ignore'). Typos in API payloads ('colour' vs 'color') vanish silently; set model_config = ConfigDict(extra='forbid') on request models. (Measured: Python 3.12.6 and the library versions noted.)