Releases: pydantic/pydantic-core
Releases · pydantic/pydantic-core
v2.27.0 2024-11-12
What's Changed
- Remove
Url
andMultiHostUrl
docstrings, we moved them to pydantic by @sydney-runkle in #1531 - Fix panic in
validate_assignment
when field has gone missing by @davidhewitt in #1532 - Fix for
Union
serializer: do not raise warnings in nested unions by @lukapeschke in #1513 - Fix
_IncEx
type alias to be compatible with mypy by @Viicos in #1537 - More union serialization tidying by @sydney-runkle in #1536
- Fix
wrap
serializer breaking union serialization in presence of extra fields by @davidhewitt in #1530 - Support
trailing-strings
withallow_partial
by @samuelcolvin in #1539
New Contributors
- @lukapeschke made their first contribution in #1513
Full Changelog: v2.26.0...v2.27.0
v2.26.0 2024-11-04
What's Changed
Fixes
- Revert changes to url schemas that support
cls
, the 2x validation isn't worth it (and is breaking) by @sydney-runkle in #1514 - Fix when
coerce_numbers_to_str
enabled and string has invalid unicode character by @andrey-berenda in #1515 - Fix serializing
complex
values in enums by @changhc in #1524
Packaging
- Bump
serde
from 1.0.213 to 1.0.214 by @dependabot in #1519 - Bump
regex
from 1.11.0 to 1.11.1 by @dependabot in #1520 - Bump
jiter
from 0.6.1 to 0.7.0 by @dependabot in #1521 - bump
speedate
to 0.15 by @davidhewitt in #1526
New Features
- Add
allow_partial
by @samuelcolvin in #1512
New Contributors
- @andrey-berenda made their first contribution in #1515
Full Changelog: v2.25.1...v2.26.0
v2.25.1 2024-10-30
What's Changed
- Bump jiter from 0.5.0 to 0.6.1 by @dependabot in #1498
- Update Pyodide to v0.26.3 by @riyavsinha in #1507
- Allow subclassing
ValidationError
andPydanticCustomError
by @Youssefares in #1413 - Revert "feat: add 'millisecond' option to
ser_json_timedelta
" by @sydney-runkle in #1503 - Support subclass inits for
Url
andMultiHostUrl
by @sydney-runkle in #1508
New Contributors
- @Youssefares made their first contribution in #1413
- @riyavsinha made their first contribution in #1507
Full Changelog: v2.25.0...v2.25.1
v2.25.0 2024-10-23
What's Changed
- Properly enforce
host_required
for URLs by @Viicos in #1488 - Support revalidation of parametrized generics by @sydney-runkle in #1489
- Support default factories taking validated data as an argument by @Viicos in #1491
Full Changelog: v2.24.2...v2.25.0
v2.24.2 2024-10-15
What's Changed
- Add
serialization
key toInvalidSchema
by @sydney-runkle in #1482
Full Changelog: v2.24.1...v2.24.2
v2.24.1 2024-10-11
What's Changed
Packaging
- Restore Windows aarch64 builds by @davidhewitt in #1464
- Limit windows builds to Rust 1.77 (to keep Windows 7 support) by @davidhewitt in #1463
- Bump
pyo3
from 0.22.2 to 0.22.3 by @dependabot in #1472 - Bump
serde
from 1.0.209 to 1.0.210 by @dependabot in #1471 - Bump
regex
from 1.10.6 to 1.11.0 by @dependabot in #1470
Fixes
- Fix equality checks for primitives in literals by @sydney-runkle in #1459
Changes
- Add
invalid
schema placeholder by @sydney-runkle in #1469 - Relax intensity of error for
issubclass
andisinstance
schemas from json by @sydney-runkle in #1479
Full Changelog: v2.24.0...v2.24.1
v2.24.0 2024-09-20
What's Changed
Features
- Add milliseconds option to
ser_json_timedelta
config parameter by @ollz272 in #1427 - Add support for unpacked
TypedDict
to type hint variadic keyword arguments inArgumentsValidator
by @Viicos in #1451
Fixes
- Do not require padding when decoding base64 bytes by @bschoenmaeckers in #1448
- Support wider variety of enum validation cases by @sydney-runkle in #1456
New Contributors
- @bschoenmaeckers made their first contribution in #1448
Full Changelog: v2.23.4...v2.24.0
v2.23.4 2024-09-16
What's Changed
- Fix variance issue in
_IncEx
type alias, only allowTrue
by @Viicos in #1453 - Clean up serialization warnings for invalid data in unions by @sydney-runkle in #1449
Full Changelog: v2.23.3...v2.23.4
v2.23.3 2024-09-07
What's Changed
Packaging
- Bump the python-packages group with 8 updates by @dependabot in #1428
- Bump
serde
from 1.0.204 to 1.0.209 by @dependabot in #1429 - Bump
idna
from 1.0.1 to 1.0.2 by @dependabot in #1430 - Bump
uuid
from 1.9.1 to 1.10.0 by @dependabot in #1431 - Bump
regex
from 1.10.5 to 1.10.6 by @dependabot in #1432 - Bump
serde_json
from 1.0.121 to 1.0.128 by @dependabot in #1440
Fixes
- Negative integers with leading zeros raise ValueError by @JBLDKY in #1436
- Fix tagged union serialization warning when using aliases by @sydney-runkle in #1442
- Fix
_IncEx
type annotation by @Viicos in #1443
New Contributors
Full Changelog: v2.23.2...v2.23.3
v2.23.2 2024-09-05
What's Changed
- Adding missing API docs to
pydantic_core
by @sydney-runkle in #1420
Full Changelog: v2.23.1...v2.23.2