Pydantic-core

Latest version: v2.30.0

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

Scan your dependencies

Page 1 of 21

2.30.0

What's Changed
* Use core schema fns to initalize `SchemaValidator`s in the test suite. by mikeedjones in https://github.com/pydantic/pydantic-core/pull/1631
* Bump url from 2.5.2 to 2.5.4 by dependabot in https://github.com/pydantic/pydantic-core/pull/1585
* Fix enum strict JSON validation when validators are present by Viicos in https://github.com/pydantic/pydantic-core/pull/1632
* Add support for validating v7 UUIDs by astei in https://github.com/pydantic/pydantic-core/pull/1634
* Refactor `LookupKey` logic to reduce redundancy by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1635
* Add support for UUIDv6 and UUIDv8 validation by astei in https://github.com/pydantic/pydantic-core/pull/1636
* Remove unneeded `Option` map in `PyMultiHostUrl.build` by Viicos in https://github.com/pydantic/pydantic-core/pull/1643
* Add API documentation for `ErrorDetails.url` by Viicos in https://github.com/pydantic/pydantic-core/pull/1642
* Fix typo in `InitErrorDetails.type` documentation by sobolevn in https://github.com/pydantic/pydantic-core/pull/1645
* bump to PyO3 0.23.5, support PyPy 3.11 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1646
* Fix strict behavior for unions by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1638
* Update python3-dll-a for PyPy 3.11 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1647
* Improving the alias configuration API for validation and serialization by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1640

New Contributors
* astei made their first contribution in https://github.com/pydantic/pydantic-core/pull/1634
* sobolevn made their first contribution in https://github.com/pydantic/pydantic-core/pull/1645

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.29.0...v2.30.0

2.29.0

What's Changed

Packaging

* Bump `uuid` from 1.11.0 to 1.12.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/1618
* Bump `serde_json` from 1.0.134 to 1.0.138 by dependabot in https://github.com/pydantic/pydantic-core/pull/1617
* Always use maturin for the `uv` commands in Makefile by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1622
* build PGO wheels on `macos-latest` runners by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1624

Fixes

* Fix float `multiple_of` validation for negative numbers by K-dash in https://github.com/pydantic/pydantic-core/pull/1373
* Fix wasm preview by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1621
* Raise validation error when unhashable items added to a set by mikeedjones in https://github.com/pydantic/pydantic-core/pull/1619
* Fix condition before using prebuilt validator/serializer by Viicos in https://github.com/pydantic/pydantic-core/pull/1625

Performance

* Memory usage optimization via reuse of `SchemaValidator` and `SchemaSerializer` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1616

New Features

* Support free-threaded Python 3.13t by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1628

New Contributors
* K-dash made their first contribution in https://github.com/pydantic/pydantic-core/pull/1373
* mikeedjones made their first contribution in https://github.com/pydantic/pydantic-core/pull/1619

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.28.0...v2.29.0

2.28.0

What's Changed
* minimal upgrade to PyO3 0.23 (ignoring deprecations) by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1556
* Bump serde_json from 1.0.132 to 1.0.133 by dependabot in https://github.com/pydantic/pydantic-core/pull/1564
* Bump idna from 1.0.2 to 1.0.3 by dependabot in https://github.com/pydantic/pydantic-core/pull/1567
* Bump serde from 1.0.214 to 1.0.215 by dependabot in https://github.com/pydantic/pydantic-core/pull/1565
* remove `python3-dll-a` dependency by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1568
* Use UserWarning from pyo3 by changhc in https://github.com/pydantic/pydantic-core/pull/1559
* bump jiter to 0.8.2, PyO3 to 0.23.3 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1570
* Fix typo in `PydanticUseDefault` docstring by Viicos in https://github.com/pydantic/pydantic-core/pull/1571
* Forward `default_value` calls to the underlying schema for `DefinitionRefValidator` by Viicos in https://github.com/pydantic/pydantic-core/pull/1573
* fix type hint for `SerializationInfo.round_trip` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1576
* Include JSON Schema input core schema in function schemas by Viicos in https://github.com/pydantic/pydantic-core/pull/1572
* fix wasteful `to_python()` calls checking for undefined by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1580
* Fix `ValueError` on year zero by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1583
* Bump serde from 1.0.215 to 1.0.216 by dependabot in https://github.com/pydantic/pydantic-core/pull/1586
* optimize refcounting op in datetime creation by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1590
* Bump astral-sh/setup-uv from 4 to 5 by dependabot in https://github.com/pydantic/pydantic-core/pull/1596
* Bump serde from 1.0.216 to 1.0.217 by dependabot in https://github.com/pydantic/pydantic-core/pull/1595
* Bump serde_json from 1.0.133 to 1.0.134 by dependabot in https://github.com/pydantic/pydantic-core/pull/1594
* Drop 3.8 support by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1604
* Remove `pyupgrade` as an explicit linting dependency by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1606
* Fix: `dataclass` `InitVar`s shouldn't be required on serialization by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1602
* Bump version to v2.28.0 by Viicos in https://github.com/pydantic/pydantic-core/pull/1615


**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.27.1...v2.28.0

2.27.2

What's Changed
* fix linux PGO wheel build by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1557
* Forward `default_value` calls to the underlying schema for `DefinitionRefValidator` by Viicos in https://github.com/pydantic/pydantic-core/pull/1573
* Include JSON Schema input core schema in function schemas by Viicos in https://github.com/pydantic/pydantic-core/pull/1572
* fix `ValueError` on year zero by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1583


**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.27.1...v2.27.2

2.27.1

What's Changed

* Simplify shared union serializer logic by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1538
* Tidy up some uses of `Bound<'_, PyString>::to_str` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1544
* Fix serialization inference for `complex` types in `python` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1549
* Bump to PyO3 v0.22.6 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1550
* Fix performance regression for JSON tagged union by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1552

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.27.0...v2.27.1

2.27.0

What's Changed
* Remove `Url` and `MultiHostUrl` docstrings, we moved them to pydantic by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1531
* Fix panic in `validate_assignment` when field has gone missing by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1532
* Fix for `Union` serializer: do not raise warnings in nested unions by lukapeschke in https://github.com/pydantic/pydantic-core/pull/1513
* Fix `_IncEx` type alias to be compatible with mypy by Viicos in https://github.com/pydantic/pydantic-core/pull/1537
* More union serialization tidying by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1536
* Fix `wrap` serializer breaking union serialization in presence of extra fields by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1530
* Support `trailing-strings` with `allow_partial` by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1539

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

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.26.0...v2.27.0

Page 1 of 21

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.