Pydantic V2

Use when defining, validating, serializing, or configuring data with Pydantic v2 in Python — BaseModel, Field constraints, field/model validators, model_dump serialization, pydantic-settings, TypeAdapter, enums, Literal, and discriminated unions — or when fixing code that still uses v1-era idioms (class Config, .dict()/.json(), @validator). Produces correct, idiomatic, current Pydantic v2 code. Keywords: pydantic, BaseModel, ConfigDict, model_validate, validator, settings.

bm629 d860107 6 files · 27.8 KB Updated

File contents

bm629/agent-skills/tree/main/skills/pydantic-v2 commit d860107051

Frequently asked questions

npx skillmds@latest add bm629/pydantic-v2