Files
main/rules-v0/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-components-and-validation.mdc
T
2025-02-27 00:04:07 +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.