BMAD-METHOD/.claude/rules/python-fastapi-cursorrules-.../pydantic-models.mdc

7 lines
329 B
Plaintext

---
description: Guidelines for defining Pydantic models within the models directory of a FastAPI project to ensure data validation and serialization.
globs: app/models/*.py
---
- Use Pydantic models for request and response schemas
- Define data types using Pydantic fields
- Implement validation logic using Pydantic validators