Releases: pydantic/pydantic-core
Releases · pydantic/pydantic-core
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
v2.23.1 2024-08-29
What's Changed
- Use more explicit warning regarding serialization warning for missing fields by @sydney-runkle in #1415
- Support
BigInt
serialization forint
subclasses by @kxx317 in #1417
New Contributors
Full Changelog: v2.23.0...v2.23.1
v2.23.0 2024-08-19
What's Changed
- Adding
cls
reference toTypedDictSchema
by @sydney-runkle in #1410 - Breaking change: Change
metadata
type hint fromAny
->Dict[str, Any] | None
by @sydney-runkle in #1411
Full Changelog: v2.22.0...v2.23.0
v2.22.0 2024-08-15
What's Changed
- Expose
AnySerializer
via core schema by @BoxyUwU in #1394 - Don't embed
RUSTFLAGS
in final binary by @BoxyUwU in #1396 - Validate
base64
standard encoding by @josh-newman in #1395 - Show value of wrongly typed in serialization warning by @BoxyUwU in #1377
- Try each option in union serializer before inference by @sydney-runkle in #1398
- Stop clone-ing serializers by @davidhewitt in #1402
- Fix float serialization behavior in
strict
mode by @sydney-runkle in #1400 - For missing fields, we don't warn on
exclude_
, so don't warn onexclude
by @sydney-runkle in #1403 - Use
typing_extensions.TypedDict
on Python < 3.12 by @candleindark in #1404 - Support
complex
numbers by @changhc in #1331 - Adding tagged union serializer 🚀 by @sydney-runkle in #1397
- Introduce
exactness
intoDecimal
validation logic by @sydney-runkle in #1405
New Contributors
- @candleindark made their first contribution in #1404
- @changhc made their first contribution in #1331
Full Changelog: v2.21.0...v2.22.0