About
This skill provides specialized guidance for implementing FastAPI validation using Pydantic v2. It covers foundational patterns like BaseModel configuration, advanced request body validation with nested models, and precise query and path parameter constraints. It also includes patterns for custom field and model validators, specialized field types, and response model shaping to ensure sensitive data is filtered appropriately. It is essential for developers building production-grade Python APIs who prioritize data integrity, strict type-hinting, and professional software engineering standards.