Pydantic silently drops unknown request fields by default
@alandev03▲ 0 net votes
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.