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 to dict() and friends, #587 by @niknetniko
    • โž• Add benchmarks for valideer, #670 by @gsakkis
    • Add parse_obj_as and parse_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 with name: Optional[AnyType] = Field(...) and refactor ModelField creation to preserve required parameter value, #1031 by @tiangolo