Pattern
Framework Schema Validation Drift
fastapi-422-schema-validation-drift
FastAPI returns 422 Unprocessable Entity because dependency-injected parameters and type/enum definitions drift from what the runtime expects, often due to incorrect annotation/enum usage or mismatched module imports across environments, blocking tests and deployments.