Reviews FastAPI code for routing patterns, dependency injection, validation, and async handlers. Use when reviewing FastAPI apps, checking APIRouter setup, Depends() usage, or response models.
| Issue Type | Reference |
|---|---|
| APIRouter setup, response_model, status codes | references/routes.md |
| Depends(), yield deps, cleanup, shared deps | references/dependencies.md |
| Pydantic models, HTTPException, 422 handling | references/validation.md |
| Async handlers, blocking I/O, background tasks | references/async.md |
response_model for type safetyDepends() not manual callsasync defrequests, time.sleep, open())except in route handlersThese are idiomatic FastAPI patterns that may appear problematic but are correct:
Depends(), not passed as function argumentsresponse_model is setOnly flag issues when the context warrants it:
Depends() with an auth dependencyFastAPI + Pydantic handle many concerns automatically:
Before flagging "missing" functionality, verify FastAPI isn't handling it.
Load and follow review-verification-protocol before reporting any issue.