Files
main/rules-v0-deprecated/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-components-and-validation.mdc
T
2025-03-03 23:40:27 +05:30

6 lines
327 B
Plaintext

---
description: Specifies the use of functional components and Pydantic models for input validation in FastAPI routes.
globs: **/routers/*.py
---
- Use functional components (plain functions) and Pydantic models for input validation and response schemas.
- Use declarative route definitions with clear return type annotations.