Pydantic-core

Latest version: v2.31.1

Safety actively analyzes 714815 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 22

2.23.0

What's Changed
* Adding `cls` reference to `TypedDictSchema` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1410
* Breaking change: Change `metadata` type hint from `Any` -> `Dict[str, Any] | None` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1411

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.22.0...v2.23.0

2.22.0

What's Changed

* Expose `AnySerializer` via core schema by BoxyUwU in https://github.com/pydantic/pydantic-core/pull/1394
* Don't embed `RUSTFLAGS` in final binary by BoxyUwU in https://github.com/pydantic/pydantic-core/pull/1396
* Validate `base64` standard encoding by josh-newman in https://github.com/pydantic/pydantic-core/pull/1395
* Show value of wrongly typed in serialization warning by BoxyUwU in https://github.com/pydantic/pydantic-core/pull/1377
* Try each option in union serializer before inference by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1398
* Stop clone-ing serializers by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1402
* Fix float serialization behavior in `strict` mode by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1400
* For missing fields, we don't warn on `exclude_`, so don't warn on `exclude` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1403
* Use `typing_extensions.TypedDict` on Python < 3.12 by candleindark in https://github.com/pydantic/pydantic-core/pull/1404
* Support `complex` numbers by changhc in https://github.com/pydantic/pydantic-core/pull/1331
* Adding tagged union serializer 🚀 by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1397
* Introduce `exactness` into `Decimal` validation logic by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1405

New Contributors
* candleindark made their first contribution in https://github.com/pydantic/pydantic-core/pull/1404
* changhc made their first contribution in https://github.com/pydantic/pydantic-core/pull/1331

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.21.0...v2.22.0

2.21.0

What's Changed

Packaging

* Bump `idna` from 0.5.0 to 1.0.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/1358
* Bump `pyo3` from 0.22.0 to 0.22.2 by dependabot in https://github.com/pydantic/pydantic-core/pull/1383
* Bump `serde_json` from 1.0.118 to 1.0.121 by dependabot in https://github.com/pydantic/pydantic-core/pull/1384
* Bump `serde` from 1.0.203 to 1.0.204 by dependabot in https://github.com/pydantic/pydantic-core/pull/1385
* Bump `base64` from 0.21.7 to 0.22.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/1386

Fixes

* Fixes discriminated union bug regression when using enums by kfreezen in https://github.com/pydantic/pydantic-core/pull/1286
* string: Use 're.Pattern.search' instead of 're.Pattern.match' by tinez in https://github.com/pydantic/pydantic-core/pull/1368
* Fix model `field_serializer` with computed field by nix010 in https://github.com/pydantic/pydantic-core/pull/1349
* Clean up some string handling cases by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1381

Features

* Validate bytes based on `ser_json_bytes` by josh-newman in https://github.com/pydantic/pydantic-core/pull/1308
* Support `allow_partial='trailing-strings'` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1390

Performance

* Use `Uuid:::from_u128` for `uuid_to_string` by fft001 in https://github.com/pydantic/pydantic-core/pull/1362

New Contributors
* kfreezen made their first contribution in https://github.com/pydantic/pydantic-core/pull/1286
* tinez made their first contribution in https://github.com/pydantic/pydantic-core/pull/1368
* fft001 made their first contribution in https://github.com/pydantic/pydantic-core/pull/1362
* nix010 made their first contribution in https://github.com/pydantic/pydantic-core/pull/1349
* BoxyUwU made their first contribution in https://github.com/pydantic/pydantic-core/pull/1379

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.20.1...v2.21.0

2.20.1

What's Changed
* Restore 3.13 PGO builds by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1346
* Bump `pytest-examples` to get tests passing with ruff `v0.5.0` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1360
* Bump `uuid` from 1.9.0 to 1.9.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/1356
* Bump `num-bigint` from 0.4.5 to 0.4.6 by dependabot in https://github.com/pydantic/pydantic-core/pull/1357
* Bump the python-packages group across 1 directory with 7 updates by dependabot in https://github.com/pydantic/pydantic-core/pull/1361
* Bump `speedate` to v0.14.1 and prep for `v0.20.1` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1347

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.20.0...v2.20.1

2.20.0

What's Changed
* Tidy up `tagged_union_schema` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1333
* Improvements in `Union` matching logic during validation by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1332
* Fix `Union` validation logic when `extra='allow'` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1334
* Add list `fail_fast` config option by uriyyo in https://github.com/pydantic/pydantic-core/pull/1322
* Update to PyO3 0.22, add Python 3.13 support by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1340

New Contributors
* uriyyo made their first contribution in https://github.com/pydantic/pydantic-core/pull/1322

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.19.0...v2.20.0

2.19.0

What's Changed

Packaging

* Lower MSRV to 1.75 by tiran in https://github.com/pydantic/pydantic-core/pull/1316
* Bump `libc` from 0.2.147 to 0.2.155 by wxpppp in https://github.com/pydantic/pydantic-core/pull/1317

Fixes

* Make `ValidatorFunctionWrapHandler` positional only by Viicos in https://github.com/pydantic/pydantic-core/pull/1323
* Reuse `re.Pattern` object in regex patterns by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1318

Features
* Add ser_json_inf_nan='strings' mode to produce valid JSON by josh-newman in https://github.com/pydantic/pydantic-core/pull/1307

New Contributors
* tiran made their first contribution in https://github.com/pydantic/pydantic-core/pull/1316
* wxpppp made their first contribution in https://github.com/pydantic/pydantic-core/pull/1317
* josh-newman made their first contribution in https://github.com/pydantic/pydantic-core/pull/1307

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.18.4...v2.19.0

Page 4 of 22

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.