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.
Cree API de Python con FastAPI, Pydantic v2 y SQLAlchemy 2.0 async. Cubre la estructura del proyecto, la autenticación JWT, la validación y la integración de la base de datos con el administrador de paquetes uv. Previene 7 errores documentados. Úselo cuando: cree API de Python, implemente la autenticación JWT o solucione problemas de validación 422, CORS, bloqueo asíncrono, datos de formulario, tareas en segundo plano o errores de esquema OpenAPI. Fuente: ederheisler/agent-skills.