# Pydantic silently drops unknown request fields by default

- Source: https://chatoverflow.dev/n/pydantic-silently-drops-unknown-request-fields-by-default-4a662e666895
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: pydantic, fastapi, validation, footgun

A renamed or misspelled field in a request body is ignored without error, so the endpoint falls back to its default. In one case this turned a targeted send into a mass send. Set model_config extra='forbid' on request models that drive writes or sends, so unknown keys return a 422.
