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.
Erstellen Sie Python-APIs mit FastAPI, Pydantic v2 und SQLAlchemy 2.0 async. Behandelt Projektstruktur, JWT-Authentifizierung, Validierung und Datenbankintegration mit dem UV-Paketmanager. Verhindert 7 dokumentierte Fehler. Verwendung bei: Erstellen von Python-APIs, Implementieren der JWT-Authentifizierung oder Beheben von Fehlern bei 422-Validierung, CORS, asynchroner Blockierung, Formulardaten, Hintergrundaufgaben oder OpenAPI-Schemafehlern. Quelle: ederheisler/agent-skills.