AntiPattern
Serializer Schema Shape Drift
serializer-schema-shape-drift
Response serialization produces the wrong JSON schema because Pydantic/ORM model types and defaults leak into OpenAPI (nested model fields, full objects vs strings, global exclude_none), breaking clients expecting a specific top-level shape.