forked from pool/python-pydantic
- update to 2.7.1:
* Bump `pydantic-core` to `v2.18.2`
* Ftp and Websocket connection strings support
* Use field description for RootModel schema description when
there is `…`
* Fix `validation_alias` behavior with `model_construct` for
`AliasChoices` and `AliasPath`
* Revert `typing.Literal` and import it outside the
TYPE_CHECKING block
* Fix `Secret` serialization schema, applicable for unions
* Fix `strict` application to `function-after` with
`use_enum_values`
* Address case where `model_construct` on a class which defines
`model_post_init` fails with `AttributeError`
* Fix `model_json_schema` with config types
* Support multiple zeros as an `int`
* Fix validation of `int`s with leading unary plus
* Fix interaction between `extra != 'ignore'` and
`from_attributes=True`
* Handle error from `Enum`'s `missing` function as
`ValidationError`
* Fix memory leak with `Iterable` validation
* Adopt `jiter` `v0.2.0`
* Extract attribute docstrings from `FieldInfo.description`
* Add a `with_config` decorator to comply with typing spec
* Allow an optional separator splitting the value and unit of
the result of `ByteSize.human_readable`
* Add generic `Secret` base type
* Make use of `Sphinx` inventories for cross references in docs
* Add environment variable to disable plugins
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic?expand=0&rev=49
This commit is contained in:
@@ -1,3 +1,53 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 27 07:45:31 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.7.1:
|
||||
* Bump `pydantic-core` to `v2.18.2`
|
||||
* Ftp and Websocket connection strings support
|
||||
* Use field description for RootModel schema description when
|
||||
there is `…`
|
||||
* Fix `validation_alias` behavior with `model_construct` for
|
||||
`AliasChoices` and `AliasPath`
|
||||
* Revert `typing.Literal` and import it outside the
|
||||
TYPE_CHECKING block
|
||||
* Fix `Secret` serialization schema, applicable for unions
|
||||
* Fix `strict` application to `function-after` with
|
||||
`use_enum_values`
|
||||
* Address case where `model_construct` on a class which defines
|
||||
`model_post_init` fails with `AttributeError`
|
||||
* Fix `model_json_schema` with config types
|
||||
* Support multiple zeros as an `int`
|
||||
* Fix validation of `int`s with leading unary plus
|
||||
* Fix interaction between `extra != 'ignore'` and
|
||||
`from_attributes=True`
|
||||
* Handle error from `Enum`'s `missing` function as
|
||||
`ValidationError`
|
||||
* Fix memory leak with `Iterable` validation
|
||||
* Adopt `jiter` `v0.2.0`
|
||||
* Extract attribute docstrings from `FieldInfo.description`
|
||||
* Add a `with_config` decorator to comply with typing spec
|
||||
* Allow an optional separator splitting the value and unit of
|
||||
the result of `ByteSize.human_readable`
|
||||
* Add generic `Secret` base type
|
||||
* Make use of `Sphinx` inventories for cross references in docs
|
||||
* Add environment variable to disable plugins
|
||||
* Add support for `deprecated` fields
|
||||
* Allow `field_serializer('*')`
|
||||
* Handle a case when `model_config` is defined as a model
|
||||
property
|
||||
* Update `create_model()` to support `typing.Annotated` as
|
||||
input
|
||||
* Add `ClickhouseDsn` support
|
||||
* Add support for `re.Pattern[str]` to `pattern` field
|
||||
* Support for `serialize_as_any` runtime setting
|
||||
* Add support for `typing.Self`
|
||||
* Ability to pass `context` to serialization
|
||||
* Add feedback widget to docs with flarelytics integration
|
||||
* Support for parsing partial JSON strings in Python
|
||||
* Add support for field level number to str coercion option
|
||||
* Update `warnings` parameter for serialization utilities to
|
||||
allow raising a warning
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 16 11:56:01 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user