AntiPattern
Pydantic Serialization Mismatch
pydantic-serialization-mismatch
Field filtering or omission is applied at the wrong layer (dump/encoding/schema/body), so Pydantic either validates the wrong shape or serializes richer objects than intended—breaking API contracts and causing type/encoding errors under real requests.