BMAD-METHOD/.claude/rules/py-fast-api/pydantic-model-rules.mdc

7 lines
360 B
Plaintext

---
description: Specific rules for creating Pydantic models, focusing on versioning and usage within the project.
globs: **/models/*.py
---
- Use type hints for all function signatures. Prefer Pydantic models over raw dictionaries for input validation.
- Use Pydantic v2.
- Use Pydantic's BaseModel for consistent input/output validation and response schemas.