pydantic v1.2 Release Notes
Release Date: 2019-11-28 // over 4 years ago-
๐ See Changelog.
- โ Add benchmarks for
cattrs
, #513 by @sebastianmika - โ Add
exclude_none
option todict()
and friends, #587 by @niknetniko - โ Add benchmarks for
valideer
, #670 by @gsakkis - Add
parse_obj_as
andparse_file_as
functions for ad-hoc parsing of data into arbitrary pydantic-compatible types, #934 by @dmontagu - โ Add
allow_reuse
argument to validators, thus allowing validator reuse, #940 by @dmontagu - โ Add support for mapping types for custom root models, #958 by @dmontagu
- ๐ Mypy plugin support for dataclasses, #966 by @koxudaxi
- โ Add support for dataclasses default factory, #968 by @ahirner
- โ Add a
ByteSize
type for converting byte string (1GB
) to plain bytes, #977 by @dgasmith - ๐ Fix mypy complaint about
@root_validator(pre=True)
, #984 by @samuelcolvin - โ Add manylinux binaries for python 3.8 to pypi, also support manylinux2010, #994 by @samuelcolvin
- โ Adds ByteSize conversion to another unit, #995 by @dgasmith
- Fix
__str__
and__repr__
inheritance for models, #1022 by @samuelcolvin - โ add testimonials section to docs, #1025 by @sullivancolin
- โ Add support for
typing.Literal
for Python 3.8, #1026 by @dmontagu - โ Add support for required
Optional
withname: Optional[AnyType] = Field(...)
and refactorModelField
creation to preserverequired
parameter value, #1031 by @tiangolo
- โ Add benchmarks for