|
| 1 | +## v1.0 (2019-10-23) |
| 2 | + |
| 3 | +* **Breaking Change:** deprecate the `Model.fields` property, use `Model.__fields__` instead, #883 by @samuelcolvin |
| 4 | +* **Breaking Change:** Change the precedence of aliases so child model aliases override parent aliases, |
| 5 | + including using `alias_generator`, #904 by @samuelcolvin |
| 6 | +* **Breaking change:** Rename `skip_defaults` to `exclude_unset`, and add ability to exclude actual defaults, #915 by @dmontagu |
| 7 | +* Add `**kwargs` to `pydantic.main.ModelMetaclass.__new__` so `__init_subclass__` can take custom parameters on extended |
| 8 | + `BaseModel` classes, #867 by @retnikt |
| 9 | +* Fix field of a type that has a default value, #880 by @koxudaxi |
| 10 | +* Use `FutureWarning` instead of `DeprecationWarning` when `alias` instead of `env` is used for settings models, #881 by @samuelcolvin |
| 11 | +* Fix issue with `BaseSettings` inheritance and `alias` getting set to `None`, #882 by @samuelcolvin |
| 12 | +* Modify `__repr__` and `__str__` methods to be consistent across all public classes, add `__pretty__` to support |
| 13 | + python-devtools, #884 by @samuelcolvin |
| 14 | +* deprecation warning for `case_insensitive` on `BaseSettings` config, #885 by @samuelcolvin |
| 15 | +* For `BaseSettings` merge environment variables and in-code values recursively, as long as they create a valid object |
| 16 | + when merged together, to allow splitting init arguments, #888 by @idmitrievsky |
| 17 | +* change secret types example, #890 by @ashears |
| 18 | +* Change the signature of `Model.construct()` to be more user-friendly, document `construct()` usage, #898 by @samuelcolvin |
| 19 | +* Add example for the `construct()` method, #907 by @ashears |
| 20 | +* Improve use of `Field` constraints on complex types, raise an error if constraints are not enforceable, |
| 21 | + also support tuples with an ellipsis `Tuple[X, ...]`, `Sequence` and `FrozenSet` in schema, #909 by @samuelcolvin |
| 22 | +* update docs for bool missing valid value, #911 by @trim21 |
| 23 | +* Better `str`/`repr` logic for `ModelField`, #912 by @samuelcolvin |
| 24 | +* Fix `ConstrainedList`, update schema generation to reflect `min_items` and `max_items` `Field()` arguments, #917 by @samuelcolvin |
| 25 | +* Allow abstracts sets (eg. dict keys) in the `include` and `exclude` arguments of `dict()`, #921 by @samuelcolvin |
| 26 | +* Fix JSON serialization errors on `ValidationError.json()` by using `pydantic_encoder`, #922 by @samuelcolvin |
| 27 | +* Clarify usage of `remove_untouched`, improve error message for types with no validators, #926 by @retnikt |
| 28 | + |
1 | 29 | ## v1.0b2 (2019-10-07)
|
2 | 30 |
|
3 | 31 | * Mark `StrictBool` typecheck as `bool` to allow for default values without mypy errors, #690 by @dmontagu
|
|
0 commit comments