All Versions
Latest Version
Avg Release Cycle
23 days
Latest Release
1034 days ago

Changelog History
Page 2

  • v1.2 Changes

    November 28, 2019

    ๐Ÿ‘€ 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
  • v1.1.1 Changes

    November 20, 2019

    ๐Ÿ‘€ See Changelog.

    • ๐Ÿ›  Fix bug where use of complex fields on sub-models could cause fields to be incorrectly configured, #1015 by @samuelcolvin
  • v1.1 Changes

    November 07, 2019

    ๐Ÿ‘€ See Changelog.

    • Add a mypy plugin for type checking BaseModel. __init__ and more, #722 by @dmontagu
    • Change return type typehint for GenericModel. __class_getitem__ to prevent PyCharm warnings, #936 by @dmontagu
    • ๐Ÿ›  Fix usage of Any to allow None, also support TypeVar thus allowing use of un-parameterised collection types
      e.g. Dict and List, #962 by @samuelcolvin
    • Set FieldInfo on subfields to fix schema generation for complex nested types, #965 by @samuelcolvin
  • v1.0 Changes

    October 23, 2019

    ๐Ÿ‘€ See Changelog.

    • ๐Ÿ’ฅ Breaking Change: deprecate the Model.fields property, use Model. __fields__ instead, #883 by @samuelcolvin
    • ๐Ÿ’ฅ Breaking Change: Change the precedence of aliases so child model aliases override parent aliases,
      including using alias_generator, #904 by @samuelcolvin
    • ๐Ÿ’ฅ Breaking change: Rename skip_defaults to exclude_unset, and add ability to exclude actual defaults, #915 by @dmontagu
    • Add **kwargs to pydantic.main.ModelMetaclass. __new__ so __init_subclass__ can take custom parameters on extended
      BaseModel classes, #867 by @retnikt
    • ๐Ÿ›  Fix field of a type that has a default value, #880 by @koxudaxi
    • ๐Ÿ—„ Use FutureWarning instead of DeprecationWarning when alias instead of env is used for settings models, #881 by @samuelcolvin
    • ๐Ÿ›  Fix issue with BaseSettings inheritance and alias getting set to None, #882 by @samuelcolvin
    • Modify __repr__ and __str__ methods to be consistent across all public classes, add __pretty__ to support
      python-devtools, #884 by @samuelcolvin
    • ๐Ÿ—„ deprecation warning for case_insensitive on BaseSettings config, #885 by @samuelcolvin
    • ๐Ÿ”€ For BaseSettings merge environment variables and in-code values recursively, as long as they create a valid object
      ๐Ÿ”€ when merged together, to allow splitting init arguments, #888 by @idmitrievsky
    • ๐Ÿ”„ change secret types example, #890 by @ashears
    • ๐Ÿ”„ Change the signature of Model.construct() to be more user-friendly, document construct() usage, #898 by @samuelcolvin
    • โž• Add example for the construct() method, #907 by @ashears
    • ๐Ÿ‘Œ Improve use of Field constraints on complex types, raise an error if constraints are not enforceable,
      ๐Ÿ‘ also support tuples with an ellipsis Tuple[X, ...], Sequence and FrozenSet in schema, #909 by @samuelcolvin
    • โšก๏ธ update docs for bool missing valid value, #911 by @Trim21
    • ๐Ÿ‘ Better str/repr logic for ModelField, #912 by @samuelcolvin
    • Fix ConstrainedList, update schema generation to reflect min_items and max_items Field() arguments, #917 by @samuelcolvin
    • ๐Ÿ‘ Allow abstracts sets (eg. dict keys) in the include and exclude arguments of dict(), #921 by @samuelcolvin
    • ๐Ÿ›  Fix JSON serialization errors on ValidationError.json() by using pydantic_encoder, #922 by @samuelcolvin
    • ๐Ÿšš Clarify usage of remove_untouched, improve error message for types with no validators, #926 by @retnikt
  • v1.0.b2 Changes

    October 07, 2019
    • 0๏ธโƒฃ Mark StrictBool typecheck as bool to allow for default values without mypy errors, #690 by @dmontagu
    • ๐Ÿ“š Transfer the documentation build from sphinx to mkdocs, re-write much of the documentation, #856 by @samuelcolvin
    • โž• Add support for custom naming schemes for GenericModel subclasses, #859 by @dmontagu
    • โž• Add if TYPE_CHECKING: to the excluded lines for test coverage, #874 by @dmontagu
    • Rename allow_population_by_alias to allow_population_by_field_name, remove unnecessary warning about it, #875 by @samuelcolvin

    ๐Ÿ‘€ see

  • v1.0.b1 Changes

    October 01, 2019

    ๐Ÿ‘€ see HISTORY.rst

  • v0.32.2 Changes

    August 17, 2019
    • fix __post_init__ usage with dataclass inheritance, fix #739 by @samuelcolvin
    • ๐Ÿ›  fix required fields validation on GenericModels classes, #742 by @amitbl
    • ๐Ÿ›  fix defining custom Schema on GenericModel fields, #754 by @amitbl
  • v0.32.1 Changes

    August 08, 2019

    ๐Ÿ‘€ see HISTORY.rst:

  • v0.32 Changes

    August 06, 2019

    ๐Ÿ‘€ see HISTORY.rst

  • v0.31.1 Changes

    July 31, 2019

    ๐Ÿ‘€ see HISTORY.rst