|
| 1 | +## v1.3 (2019-12-21) |
| 2 | + |
| 3 | +* Change `schema` and `schema_model` to handle dataclasses by using their `__pydantic_model__` feature, #792 by @aviramha |
| 4 | +* Added option for `root_validator` to be skipped if values validation fails using keyword `skip_on_failure=True`, #1049 by @aviramha |
| 5 | +* Allow `Config.schema_extra` to be a callable so that the generated schema can be post-processed, #1054 by @selimb |
| 6 | +* Update mypy to version 0.750, #1057 by @dmontagu |
| 7 | +* Trick Cython into allowing str subclassing, #1061 by @skewty |
| 8 | +* Prevent type attributes being added to schema unless the attribute `__schema_attributes__` is `True`, #1064 by @samuelcolvin |
| 9 | +* Change `BaseModel.parse_file` to use `Config.json_loads`, #1067 by @kierandarcy |
| 10 | +* Fix for optional `Json` fields, #1073 by @volker48 |
| 11 | +* Change the default number of threads used when compiling with cython to one, |
| 12 | + allow override via the `CYTHON_NTHREADS` environment variable, #1074 by @samuelcolvin |
| 13 | +* Run FastAPI tests during Pydantic's CI tests, #1075 by @tiangolo |
| 14 | +* My mypy strictness constraints, and associated tweaks to type annotations, #1077 by @samuelcolvin |
| 15 | +* Add `__eq__` to SecretStr and SecretBytes to allow "value equals", #1079 by @sbv-trueenergy |
| 16 | +* Fix schema generation for nested None case, #1088 by @lutostag |
| 17 | +* Consistent checks for sequence like objects, #1090 by @samuelcolvin |
| 18 | +* Fix `Config` inheritance on `BaseSettings` when used with `env_prefix`, #1091 by @samuelcolvin |
| 19 | +* Fix for `__modify_schema__` when it conflicted with `field_class_to_schema*`, #1102 by @samuelcolvin |
| 20 | +* docs: Fix explanation of case sensitive environment variable names when populating `BaseSettings` subclass attributes, #1105 by @tribals |
| 21 | +* Rename django-rest-framework benchmark in documentation, #1119 by @frankie567 |
| 22 | + |
1 | 23 | ## v1.2 (2019-11-28)
|
2 | 24 |
|
3 |
| -* **Possible Breaking Change:** Add support for required `Optional` with `name: Optional[AnyType] = Field(...)` |
| 25 | +* **Possible Breaking Change:** Add support for required `Optional` with `name: Optional[AnyType] = Field(...)` |
4 | 26 | and refactor `ModelField` creation to preserve `required` parameter value, #1031 by @tiangolo;
|
5 | 27 | see [here](https://pydantic-docs.helpmanual.io/usage/models/#required-optional-fields) for details
|
6 | 28 | * Add benchmarks for `cattrs`, #513 by @sebastianmika
|
|
34 | 56 | ## v1.0 (2019-10-23)
|
35 | 57 |
|
36 | 58 | * **Breaking Change:** deprecate the `Model.fields` property, use `Model.__fields__` instead, #883 by @samuelcolvin
|
37 |
| -* **Breaking Change:** Change the precedence of aliases so child model aliases override parent aliases, |
| 59 | +* **Breaking Change:** Change the precedence of aliases so child model aliases override parent aliases, |
38 | 60 | including using `alias_generator`, #904 by @samuelcolvin
|
39 | 61 | * **Breaking change:** Rename `skip_defaults` to `exclude_unset`, and add ability to exclude actual defaults, #915 by @dmontagu
|
40 |
| -* Add `**kwargs` to `pydantic.main.ModelMetaclass.__new__` so `__init_subclass__` can take custom parameters on extended |
| 62 | +* Add `**kwargs` to `pydantic.main.ModelMetaclass.__new__` so `__init_subclass__` can take custom parameters on extended |
41 | 63 | `BaseModel` classes, #867 by @retnikt
|
42 | 64 | * Fix field of a type that has a default value, #880 by @koxudaxi
|
43 | 65 | * Use `FutureWarning` instead of `DeprecationWarning` when `alias` instead of `env` is used for settings models, #881 by @samuelcolvin
|
|
0 commit comments