pydantic v1.4 Release Notes

Release Date: 2020-01-24 // over 4 years ago
  • ๐Ÿ‘€ See Changelog.

    • ๐Ÿ’ฅ Breaking Change: alias precedence logic changed so aliases on a field always take priority over
      an alias from alias_generator to avoid buggy/unexpected behaviour,
      ๐Ÿ‘€ see here for details, #1178 by @samuelcolvin
    • โž• Add support for unicode and punycode in TLDs, #1182 by @jamescurtin
    • ๐Ÿ›  Fix cls argument in validators during assignment, #1172 by @samuelcolvin
    • completing Luhn algorithm for PaymentCardNumber, #1166 by @cuencandres
    • add support for generics that implement __get_validators__ like a custom data type, #1159 by @tiangolo
    • โž• add support for infinite generators with Iterable, #1152 by @tiangolo
    • ๐Ÿ›  fix url_regex to accept schemas with +, - and . after the first character, #1142 by @samuelcolvin
    • ๐Ÿšš move version_info() to version.py, suggest its use in issues, #1138 by @samuelcolvin
    • ๐Ÿ‘Œ Improve pydantic import time by roughly 50% by deferring some module loading and regex compilation, #1127 by @samuelcolvin
    • ๐Ÿ›  Fix EmailStr and NameEmail to accept instances of themselves in cython, #1126 by @koxudaxi
    • Pass model class to the Config.schema_extra callable, #1125 by @therefromhere
    • ๐Ÿ›  Fix regex for username and password in URLs, #1115 by @samuelcolvin
    • โž• Add support for nested generic models, #1104 by @dmontagu
    • add __all__ to __init__.py to prevent "implicit reexport" errors from mypy, #1072 by @samuelcolvin
    • โž• Add support for using "dotenv" files with BaseSettings, #1011 by @acnebs