Production-tested patterns for FastAPI with Pydantic v2, SQLAlchemy 2.0 async, and JWT authentication.
This skill prevents 7 documented issues from official FastAPI GitHub and release notes.
Error: model.modelfieldsset includes default values when using Form() Source: GitHub Issue #13399 Why It Happens: Form data parsing preloads default values and passes them to the validator, making it impossible to distinguish between fields explicitly set by the user and fields using defaults. This bug ONLY affects Form data, not JSON body data.
Crea API Python con FastAPI, Pydantic v2 e SQLAlchemy 2.0 asincrono. Copre la struttura del progetto, l'autenticazione JWT, la convalida e l'integrazione del database con il gestore pacchetti uv. Previene 7 errori documentati. Utilizzare quando: creazione di API Python, implementazione dell'autenticazione JWT o risoluzione dei problemi di convalida 422, CORS, blocco asincrono, dati del modulo, attività in background o errori dello schema OpenAPI. Fonte: jezweb/claude-skills.