All Versions
26
Latest Version
Avg Release Cycle
23 days
Latest Release
1034 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v1.2 Changes
November 28, 2019๐ 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
-
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 allowNone
, also supportTypeVar
thus allowing use of un-parameterised collection types
e.g.Dict
andList
, #962 by @samuelcolvin - Set
FieldInfo
on subfields to fix schema generation for complex nested types, #965 by @samuelcolvin
- Add a mypy plugin for type checking
-
v1.0 Changes
October 23, 2019๐ See Changelog.
- ๐ฅ Breaking Change: deprecate the
Model.fields
property, useModel. __fields__
instead, #883 by @samuelcolvin - ๐ฅ Breaking Change: Change the precedence of aliases so child model aliases override parent aliases,
including usingalias_generator
, #904 by @samuelcolvin - ๐ฅ Breaking change: Rename
skip_defaults
toexclude_unset
, and add ability to exclude actual defaults, #915 by @dmontagu - Add
**kwargs
topydantic.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 ofDeprecationWarning
whenalias
instead ofenv
is used for settings models, #881 by @samuelcolvin - ๐ Fix issue with
BaseSettings
inheritance andalias
getting set toNone
, #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
onBaseSettings
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, documentconstruct()
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 ellipsisTuple[X, ...]
,Sequence
andFrozenSet
in schema, #909 by @samuelcolvin - โก๏ธ update docs for bool missing valid value, #911 by @Trim21
- ๐ Better
str
/repr
logic forModelField
, #912 by @samuelcolvin - Fix
ConstrainedList
, update schema generation to reflectmin_items
andmax_items
Field()
arguments, #917 by @samuelcolvin - ๐ Allow abstracts sets (eg. dict keys) in the
include
andexclude
arguments ofdict()
, #921 by @samuelcolvin - ๐ Fix JSON serialization errors on
ValidationError.json()
by usingpydantic_encoder
, #922 by @samuelcolvin - ๐ Clarify usage of
remove_untouched
, improve error message for types with no validators, #926 by @retnikt
- ๐ฅ Breaking Change: deprecate the
-
v1.0.b2 Changes
October 07, 2019- 0๏ธโฃ Mark
StrictBool
typecheck asbool
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
toallow_population_by_field_name
, remove unnecessary warning about it, #875 by @samuelcolvin
๐ see HISTORY.md
- 0๏ธโฃ Mark
-
v1.0.b1 Changes
October 01, 2019๐ see HISTORY.rst
-
v0.32.2 Changes
August 17, 2019 -
v0.32.1 Changes
August 08, 2019๐ see HISTORY.rst:
- do not validate extra fields when
validate_assignment
is on, #724 by @YaraslauZhylko
- do not validate extra fields when
-
v0.32 Changes
August 06, 2019๐ see HISTORY.rst
-
v0.31.1 Changes
July 31, 2019๐ see HISTORY.rst