AntiPattern
Higher-Order Dependencies Ambiguity
higher-order-dependency-overlap-ambiguity
FastAPI dependency wiring and request-model selection can behave unexpectedly when higher-order callables and overlapping union schemas are used, causing validation to pick the wrong branch and break endpoint behavior across shared models and APIs.