NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI, #19 most downloaded on PyPI
Core functionality for Pydantic validation and serialization
Latest stable
2.50.5
Last release 3 days ago
19 Nov 2026
Release timing varies
gaps range from 2 weeks to 4 months
No release notes found
nothing matched a version
3 versions withdrawn
withdrawn after publishing
5 years old
165 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
fix support for JSON Schema generation when using models with circular references in Python 3.7, #572 by @tiangolo
__post_init_post_parse__ on dataclasses, #567 by @sevahopydantic.compiled on ipython, #573 by @dmontagu and @samuelcolvinStrictBool type, #579 by @cazgpYour coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
breaking change _pydantic_post_init to execute dataclass' original __post_init__ before validation, #560 by @HeavenVolkoff
_pydantic_post_init to execute dataclass' original __post_init__ before
validation, #560 by @HeavenVolkoffBreaking Change: fix .dict(skip_keys=True) skipping values set via alias (this involves changing validate_model() to always returns Tuple[Dict[str, An…
IPvAnyAddress, IPvAnyInterface, IPvAnyNetwork #498 by @pilosuscreate_model, #526 by @dmontagu.dict(skip_keys=True) skipping values set via alias (this involves changing
validate_model() to always returns Tuple[Dict[str, Any], Set[str], Optional[ValidationError]]), #517 by @sommdIPv4Address, IPv6Address, IPv4Interface,
IPv6Interface, IPv4Network, IPv6Network #532 by @euri10Color type, #504 by @pilosus and @samuelcolvinImprove documentation on self-referencing models and annotations, #487 by @theenglishway
Nothing published for this version
fix handling ForwardRef in sub-types, like Union, #464 by @tiangolo
ForwardRef in sub-types, like Union, #464 by @tiangoloparse_obj to cope with dict-like objects, #472 by @samuelcolvinjson for Path, FilePath, and DirectoryPath objects, #473 by @mikegoodspeedNothing published for this version
fix black deprecation warnings after update, #451 by @pilosus
IntEnum support, #444 by @potykionblack deprecation warnings after update, #451 by @pilosusForwardRef collection bug, #450 by @tigerwingsClassVars, #455 by @tyryluipaddress types, #333 by @pilosusSecretStr and SecretBytes types, #452 by @atheuzadd IPv{4,6,Any}Network and IPv{4,6,Any}Interface types from ipaddress stdlib, #333 by @pilosus
fix typo in NoneIsNotAllowedError message, #414 by @YaraslauZhylko
fix tests for Python 3.8, #396 by @samuelcolvin
Deprecated ignore_extra and allow_extra Config fields in favor of extra, #352 by @liiight
Callable type hint, fix #279 by @proofit404validator decorator, fix #375 by @tiangolomultiple_of constraint to ConstrainedDecimal, ConstrainedFloat, ConstrainedInt
and their related types condecimal, confloat, and conint #371, thanks @StephenBrown2ignore_extra and allow_extra Config fields in favor of extra, #352 by @liiightvalidate_all or validate_always, #381 by @samuelcolvin2e10, #385 by @samuelcolvinadd ConstrainedBytes and conbytes types, #315 @Gr1N
breaking change: don't call validators on keys of dictionaries, #254 by @samuelcolvin
always=True when the default is None or the type is optional, also prevent
whole validators being called for sub-fields, fix #132 by @samuelcolvinignore_extra=False and allow_population_by_alias=True, fix #257 by @samuelcolvinBaseConfig attributes min_anystr_length and max_anystr_length to
None by default, fix #349 in #350 by @tiangoloNothing published for this version
fix create_model to correctly use the passed __config__, #320 by @hugoduncan
create_model to correctly use the passed __config__, #320 by @hugoduncanbreaking change: refactor schema generation to be compatible with JSON Schema and OpenAPI specs, #308 by @tiangolo
schema to schema module to generate top-level schemas from base models, #308 by @tiangoloSchema class to declare validation for str and numeric values, #311 by @tiangolo_schema to schema on fields, #318 by @samuelcolvincase_insensitive option to BaseSettings Config, #277 by @jasonkuhrtNothing published for this version
Nothing published for this version
move codebase to use black, #287 by @samuelcolvin
parse_date, #298 by @samuelcolvinPyObject = None, fix #305 by @samuelcolvinPattern type, fix #303 by @samuelcolvinNothing published for this version
dataclasses decorator, #269 by @Gaunt and @samuelcolvin
raise an exception if a field's name shadows an existing BaseModel attribute #242
BaseModel attribute #242UrlStr and urlstr types #236timedelta objects as values for properties of type timedelta (matches datetime etc. behavior) #247fix schema generation for fields defined using typing.Any #237
typing.Any #237add by_alias argument in .dict() and .json() model methods #205
support Python 3.7 #216, thanks @layday
breaking change: new errors format #179, thanks @Gr1N
Config.allow_population_by_alias #160, thanks @bendemareeConfig.min_number_size and Config.max_number_size #183, thanks @Gr1Nlt and gt arguments to conint etc. #188
for the old behaviour use le and ge #194, thanks @jahebaConfig.error_msg_templates #183,
thanks @Gr1Ntweak email-validator import error message #145
parse_date() and parse_datetime() when input is 0 #144, thanks @YannLuoConfig.anystr_strip_whitespace and strip_whitespace kwarg to constr,
by default values is `False`` #163, thanks @Gr1NConstrainedFloat, confloat, PositiveFloat and NegativeFloat types #166, thanks @Gr1NNothing published for this version
Nothing published for this version
fix bug with create_model modifying the base class
create_model modifying the base classbreaking change: rename .config to .__config__ on a model
create_model method #113 #125.config to .__config__ on a model.values() on a model, use .dict() insteadOrderedDict and use simple dict #126Config.use_enum_values #127@validate('*') #128assignment validation #94, thanks petroswork!
validator decorators for complex validation, #97values(...) and replace with .dict(...), #99Nothing published for this version
Nothing published for this version
Nothing published for this version
remove index and track from error object (json) if they're null #90
show length in string validation error
Nothing published for this version
immutable models via config.allow_mutation = False, associated cleanup and performance improvement #44
config.allow_mutation = False, associated cleanup and performance improvement #44construct() and copy() #53setattr is removed as __setattr__ is now intelligent #44raise_exception removed, Models now always raise exceptions #44StrictStr which only always strings as input #52* add docs * add history
Nothing published for this version
One column per quarter.