v2.7.1 (2024-04-23)
What's Changed
Packaging
- Bump
pydantic-coretov2.18.2by @sydney-runkle in #9307
New Features
- Ftp and Websocket connection strings support by @CherrySuryp in #9205
Changes
- Use field description for RootModel schema description when there is
…by @LouisGobert in #9214
Fixes
- Fix
validation_aliasbehavior withmodel_constructforAliasChoicesandAliasPathby @sydney-runkle in #9223 - Revert
typing.Literaland import it outside the TYPE_CHECKING block by @frost-nzcr4 in #9232 - Fix
Secretserialization schema, applicable for unions by @sydney-runkle in #9240 - Fix
strictapplication tofunction-afterwithuse_enum_valuesby @sydney-runkle in #9279 - Address case where
model_constructon a class which definesmodel_post_initfails withAttributeErrorby @babygrimes in #9168 - Fix
model_json_schemawith config types by @NeevCohen in #9287 - Support multiple zeros as an
intby @samuelcolvin in pydantic/pydantic-core#1269 - Fix validation of
ints with leading unary plus by @cknv in pydantic/pydantic-core#1272 - Fix interaction between
extra != 'ignore'andfrom_attributes=Trueby @davidhewitt in pydantic/pydantic-core#1276 - Handle error from
Enum'smissingfunction asValidationErrorby @sydney-runkle in pydantic/pydantic-core#1274 - Fix memory leak with
Iterablevalidation by @davidhewitt in pydantic/pydantic-core#1271
New Contributors
- @zzstoatzz made their first contribution in #9219
- @frost-nzcr4 made their first contribution in #9232
- @CherrySuryp made their first contribution in #9205
- @vagenas made their first contribution in #9268
- @ollz272 made their first contribution in #9262
- @babygrimes made their first contribution in #9168
- @swelborn made their first contribution in #9296
- @kf-novi made their first contribution in #9236
- @lgeiger made their first contribution in #9288
Full Changelog: v2.7.0...v2.7.1/