AntiPattern
Pydantic Serialization Mismatch
declared-model-driven-serialization-mismatch
Pydantic/SQLModel serialization and validation follow the declared field types, so attempts to “shape” JSON by excluding or overriding fields (e.g., exclude_none, body-level field omission, placeholder formatting) backfire and emit wrong nested structures or drop needed values.