Pydantic-core

Latest version: v2.18.2

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

Scan your dependencies

Page 1 of 17

2.18.2

What's Changed
* Support multiple zeros as an `int` by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1269
* Fix validation of `int`s with leading unary plus by cknv in https://github.com/pydantic/pydantic-core/pull/1272
* Fix interaction between `extra != 'ignore'` and `from_attributes=True` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1275
* Handle error from `Enum`'s `missing` function as `ValidationError` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1274
* Fix memory leak with `Iterable` validation by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1271

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

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.18.1...v2.18.2

2.18.1

What's Changed
* allow serialization functions to upgrade warnings to exceptions by Lance-Drane in https://github.com/pydantic/pydantic-core/pull/1258
* Fix: add `coerce_numbers_to_str option` in `StringSchema` by NeevCohen in https://github.com/pydantic/pydantic-core/pull/1262
* Trim leading zeros before parsing `str` -> `int` by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1266
* Prevent trailing dots in integers by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1267

New Contributors
* Lance-Drane made their first contribution in https://github.com/pydantic/pydantic-core/pull/1258

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.18.0...v2.18.1

2.18.0

What's Changed
* update to PyO3 0.21 final by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1248
* Add coerce_numbers_to_str option in str_schema by NeevCohen in https://github.com/pydantic/pydantic-core/pull/1249
* caching strings from JSON by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1240
* Bump serde from 1.0.196 to 1.0.197 by dependabot in https://github.com/pydantic/pydantic-core/pull/1255
* Bump smallvec from 1.13.1 to 1.13.2 by dependabot in https://github.com/pydantic/pydantic-core/pull/1253
* Bump enum_dispatch from 0.3.12 to 0.3.13 by dependabot in https://github.com/pydantic/pydantic-core/pull/1252
* fix build warnings on python <3.11 by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1259
* Fixes for `ser_json_inf_nan` inference by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1251
* Adopt jiter `0.2.0` by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1250

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

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.17.0...v2.18.0

2.17.0

What's Changed

Packaging

* Bump `smallvec` from 1.11.2 to 1.13.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/1181
* Bump `regex` from 1.10.2 to 1.10.3 by dependabot in https://github.com/pydantic/pydantic-core/pull/1180
* Bump `uuid` from 1.6.1 to 1.7.0 by dependabot in https://github.com/pydantic/pydantic-core/pull/1179
* Bump `serde` from 1.0.195 to 1.0.196 by dependabot in https://github.com/pydantic/pydantic-core/pull/1177
* Bump `serde_json` from 1.0.109 to 1.0.114 by dependabot in https://github.com/pydantic/pydantic-core/pull/1211
* Bump `ahash` from 0.8.7 to 0.8.10 by dependabot in https://github.com/pydantic/pydantic-core/pull/1210
* Bump `strum_macros` from 0.25.3 to 0.26.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/1208
* update to `PyO3` 0.21 beta by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1222
* Update `pyodide` to 0.25.0 by samdobson in https://github.com/pydantic/pydantic-core/pull/1199
* Really drop python<=3.7 support by kloczek in https://github.com/pydantic/pydantic-core/pull/1232
* Uprev `speedate` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1244

Fixes

* Add benchmarks for serializing model with complete schema by alexmojaki in https://github.com/pydantic/pydantic-core/pull/1189
* Prevent panicking when `__dict__` changes during iteration by alexmojaki in https://github.com/pydantic/pydantic-core/pull/1196
* Fix `TzInfo` equality check based on offset by 13sin in https://github.com/pydantic/pydantic-core/pull/1197
* Fix stack overflow due to recursion in some recursive serializer schemas. by dmontagu in https://github.com/pydantic/pydantic-core/pull/1198
* Use PEP570 syntax by Viicos in https://github.com/pydantic/pydantic-core/pull/1216
* Fix parsing `BigInt` from `str` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1204
* Use new typing syntax for `_pydantic_core.pyi` by Viicos in https://github.com/pydantic/pydantic-core/pull/1217
* separate `Input` trait `'a` and `'py` lifetimes by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1227
* Fix json serialization when `computed_field` is excluded by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1228
* Implement `Input` for `str` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1229
* Move list validation to produce an associated type by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1230
* Remove `with_new_extra` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1233
* Associated types for arguments in Input by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1234
* Associated types for dict in input by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1237
* Remaining associated types by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1238
* Refactor `Input` trait to have single `as_python` cast for python inputs by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1241
* Allow case where `__pydantic_extra__` is `None`, even if `extra='allow'` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1236

Performance

* Rust enums validator by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1235
* Support json cow of jiter 0.1.0 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1231

New Features

* Add ability to pass `context` to serialization by ornariece in https://github.com/pydantic/pydantic-core/pull/1215
* Add `serialize_as_any` runtime flag support by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1194

Changes

* Trimming str before parsing to int and float by hungtsetse in https://github.com/pydantic/pydantic-core/pull/1203
* `speedate` change: Serialize duration to hour minute second, instead of just seconds by kakilangit in https://github.com/pydantic/speedate/pull/50

New Contributors
* alexmojaki made their first contribution in https://github.com/pydantic/pydantic-core/pull/1189
* samdobson made their first contribution in https://github.com/pydantic/pydantic-core/pull/1199
* 13sin made their first contribution in https://github.com/pydantic/pydantic-core/pull/1197
* hungtsetse made their first contribution in https://github.com/pydantic/pydantic-core/pull/1203
* stonebig made their first contribution in https://github.com/pydantic/pydantic-core/pull/1214
* ornariece made their first contribution in https://github.com/pydantic/pydantic-core/pull/1215
* bmwiedemann made their first contribution in https://github.com/pydantic/pydantic-core/pull/1221
* kloczek made their first contribution in https://github.com/pydantic/pydantic-core/pull/1232

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.16.3...v2.17.0

2.16.3

What's Changed

* `'YYYY-MM-DD'` `date` string coerced to `datetime` shouldn't infer timezone by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1193
* CI: Updates for Rust 1.76 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1191

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.16.2...v2.16.3

2.16.2

What's Changed

* Remove `AsLocItem` trait by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1169
* Fix: pattern serialization by Smixi in https://github.com/pydantic/pydantic-core/pull/1168
* Fid `UUID` validation from string by JeanArhancet in https://github.com/pydantic/pydantic-core/pull/1172
* Fix warning for `tuple` of wrong size in `Union` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1174
* Fix model `computed_field` json serialization by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1187

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

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.16.1...v2.16.2

Page 1 of 17

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.