What's Changed
- Preserve maxlen attribute on validated deques by @dmontagu in #5458
- Defer evaluation of dataclasses for test 2162 by @dmontagu in #5462
- Remove
__all__
from private modules by @Kludex in #5467 - pydantic-core v0.24.0 by @samuelcolvin in #5464
validate_call
to replacevalidate_arguments
by @samuelcolvin in #5342- Add
BaseConfig
back to thepydantic.config
module by @Kludex in #5479 - Docs page for validation errors by @tpdorsey in #5459
- Fix handling of default values of BaseModel subclasses in JSON schema by @dmontagu in #5368
- Use cached BaseModel core schema to hopefully improve model building performance when a model is reused by @dmontagu in #5485
- Split
__get_pydantic_core_schema__
into__modify_pydantic_core_schema__
and__get_pydantic_core_schema__
by @adriangb in #5472 - Refactor dataclasses, and get simple generics working by @dmontagu in #5473
- Add docstring coverage for dataclasses by @tpdorsey in #5471
- Move logic from _generate_schema.py to annotated_arguments.py by @adriangb in #5491
- Move
tools
module todeprecated
namespace by @Kludex in #5483 - Rework
__get_pydantic_core_schema__
APIs by @adriangb in #5490 - Add AliasPath and AliasPathChoices and use them in validation_alias type by @hramezani in #5500
- Uprev pydantic-core to 0.24.1 by @adriangb in #5494
- feat: allow accessing attributes as strings by @dijonkitchen in #5501
- Add docstring coverage for fields by @tpdorsey in #5469
- add codspell to pre-commit by @samuelcolvin in #5516
- improve some coverage by @samuelcolvin in #5518
- No case enum by @dmontagu in #5506
- Fix / rewrite xfail tests in docs by @adriangb in #5503
- Add docstring coverage for errors by @tpdorsey in #5482
- docs: fix spelling and wording by @dijonkitchen in #5525
- Computed Fields by @samuelcolvin in #5502
- Fix a couple of bugs in
@model_validator
by @adriangb in #5529 - Add test showing that missing abstractmethods error for all decorators by @dmontagu in #5530
- Add migration error messages to V2 by @Kludex in #5480
- Add support for Hashable by @dmontagu in #5489
- Change errors URL for next release by @dmontagu in #5538
- Prepare for 2.0a3 release by @dmontagu in #5540
- Revert "feat: allow accessing attributes as strings" by @samuelcolvin in #5541
New Contributors
- @dijonkitchen made their first contribution in #5501
Full Changelog: v2.0a2...v2.0a3