forked from pool/python-pydantic
Accepting request 786480 from home:mcalabkova:branches:devel:languages:python
- Update to version 1.4 * rename Schema to Field, make it a function to placate mypy * Implement root_validator and rename root errors from __obj__ to __root__ * Added initvars support to post_init_post_parse * complete rewrite of URL parsing logic * BaseSettings now uses the special env settings to define which environment variables to read, not aliases * add support for assert statements inside validators * Change the precedence of aliases so child model aliases override parent aliases, including using alias_generator * Add a mypy plugin for type checking BaseModel.__init__ and more * Add support for typing.Literal for Python 3.8 * Add a ByteSize type for converting byte string (1GB) to plain bytes * Add support for required Optional with name: Optional[AnyType] = Field(...) and refactor ModelField creation to preserve required parameter value * Add __eq__ to SecretStr and SecretBytes to allow "value equals" * Add support for nested generic models * alias precedence logic changed so aliases on a field always take priority over an alias from alias_generator * many more fixes and improvements OBS-URL: https://build.opensuse.org/request/show/786480 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
e79e4f9946
commit
83bc55a86a
@@ -1,3 +1,27 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 19 13:25:26 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- Update to version 1.4
|
||||
* rename Schema to Field, make it a function to placate mypy
|
||||
* Implement root_validator and rename root errors from __obj__ to __root__
|
||||
* Added initvars support to post_init_post_parse
|
||||
* complete rewrite of URL parsing logic
|
||||
* BaseSettings now uses the special env settings to define which
|
||||
environment variables to read, not aliases
|
||||
* add support for assert statements inside validators
|
||||
* Change the precedence of aliases so child model aliases override
|
||||
parent aliases, including using alias_generator
|
||||
* Add a mypy plugin for type checking BaseModel.__init__ and more
|
||||
* Add support for typing.Literal for Python 3.8
|
||||
* Add a ByteSize type for converting byte string (1GB) to plain bytes
|
||||
* Add support for required Optional with name: Optional[AnyType] = Field(...)
|
||||
and refactor ModelField creation to preserve required parameter value
|
||||
* Add __eq__ to SecretStr and SecretBytes to allow "value equals"
|
||||
* Add support for nested generic models
|
||||
* alias precedence logic changed so aliases on a field always take
|
||||
priority over an alias from alias_generator
|
||||
* many more fixes and improvements
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 20 09:56:55 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
Reference in New Issue
Block a user