AntiPattern
Framework Type Annotations Drift
schema-type-annotation-drift
FastAPI/Pydantic model validation drifts when the declared schema doesn’t match the request/response shape—nested model fields, JSON-string parsing, hidden/excluded fields, and circular imports cause validation, schema generation, or import-time failures that break API contracts and integration.