AntiPattern
Model Type Serialization Mismatch
pydantic-orm-type-serialization-mismatch
Declared Pydantic/SQLModel field types (e.g., list[str]) don’t align with underlying SQLAlchemy/ORM shapes or nested object structures, so request-body validation and serialization emit the wrong data form (full objects vs strings), breaking API contracts and downstream clients.