Fastapi Patterns

Enforces FastAPI + Pydantic v2 patterns used in OpenPoke's `server/`. Triggers on any FastAPI route handler, dependency, pydantic model, middleware, OpenAPI customization, or JSONResponse handling. Covers `Annotated[X, Depends()]` deps, `ERROR_RESPONSES` typing, `JSONResponse.body` decoding, Pydantic v2 `ClassVar[ConfigDict]` / `model_validate`, middleware-return discard, and `RequestResponseEndpoint` typing. Use when this capability is needed.

tomevault-io Updated

File contents

tomevault-io/skills-registry/tree/main/divnoor-4602--better-openpoke--fastapi-patterns commit 73b2604bdd

Frequently asked questions

npx skillmds@latest add tomevault-io/fastapi-patterns-10