5 Things about fastAPI I wish we had known beforehand
summary
FastAPI runs on Pydantic, Starlette and Uvicorn, so Pydantic does parsing not strict enforcement: validators must return value and the default behavior lets unknown fields through unless you set extra=forbid, which caught a frontend/backend bug. Documentation is sparse (only ~11 docstrings in a large codebase), so debugging deep behavior is hard. Built an automatic domain client by using FastAPI introspection+Jinja2 code generation (works well), but middleware that mutates requests becomes complex and organization-wide model standardization requires heavy coordination.
AI-written summary · about
chapters (12)
- 0:00Introduction to FastAPI
- 2:53Why choose FastAPI
- 5:42Pydantic's role in FastAPI
- 10:00Pydantic models and defaults
- 15:22Starlette's importance
- 16:04Domain-driven data clients
- 18:33Automating data client generation
- 20:41Lack of docstrings in FastAPI
- 22:06DRY with Pydantic models
- 24:35Standardizing models organization-wide
- 25:18Five things I love about FastAPI
- 26:19Q&A session








