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.
FastAPI, Pydantic v2 및 SQLAlchemy 2.0 async를 사용하여 Python API를 빌드하세요. 프로젝트 구조, JWT 인증, 유효성 검사 및 uv 패키지 관리자와의 데이터베이스 통합을 다룹니다. 7가지 문서화된 오류를 방지합니다. 사용 시기: Python API 생성, JWT 인증 구현, 422 유효성 검사, CORS, 비동기 차단, 양식 데이터, 백그라운드 작업 또는 OpenAPI 스키마 오류 문제 해결. 출처: ederheisler/agent-skills.