Pydantic V2

Deep reference for the data layer of a production service. TRIGGER WHEN: writing or refactoring Pydantic v2 models in Python 3.10+; migrating a codebase from Pydantic v1 to v2; choosing between `Annotated[Decimal, ...]` and `condecimal` for money; hitting v2 validator, serialization or performance surprises; designing FastAPI request/response schemas or error envelopes. DO NOT TRIGGER WHEN: the task is Python testing (use python-tdd) or non-Python schema work (use typescript-development).

acaprino Updated

File contents

acaprino/daodan/tree/main/plugins/python-development/skills/pydantic-v2 commit fe3605f192

Frequently asked questions

npx skillmds@latest add acaprino/pydantic-v2