v2.0 2023-06-30
What's Changed
- π Don't recomend to use
TypeErroron validators by @Kludex in #6179 - π Add docs about custom error messages by @Kludex in #6182
- Change allow mutation wording by @mark-todd in #6184
- π Improve fields documentation by @Kludex in #6183
- Ignore deprecated methods of
pydantic.mainin pydocstyle check by @hramezani in #6185 - Another solution to custom getattr/delattr by @dmontagu in #6165
- π Fix
RootModeldefault values by @lig in #5949 - Improve conversion_table by @hramezani in #6186
- Uncomment
from_ormdeprecateddecorator by @hramezani in #6189 - Complete
pydantic/root_model.pydocstring by @hramezani in #6193 - Complete
pydantic/functional_validators.pydocstrings by @hramezani in #6191 - Fix access of 'required' key for TypedDictField in GenerateJsonSchema by @adriangb in #6200
- π Use the same conditions on
send_tweetasreleaseby @Kludex in #6170 - π Add migration reference to the "Import Error" section by @Kludex in #6208
- Improve
pydantic/mypy.pydocstring by @hramezani in #6207 - π Update documentation about "Number Types" by @Kludex in #6211
- Don't sort model keys by @adriangb in #6212
- Add documentation for strict mode by @tpdorsey in #6196
- Add documentation for strict types by @tpdorsey in #6218
- Update serialization decorator documentation by @tpdorsey in #6216
- Update list and set docs by @dmontagu in #6142
- Update docs for sequence_iterable by @dmontagu in #6220
- π· Add Integration CI workflow for
pydantic-settingsby @lig in #6221 - β¬ Upgrade to pydantic-core 0.41.0 by @lig in #6219
- Document Strict on Annotated fields by @tpdorsey in #6223
- π Fix crash on serializing a union of RootModel and BaseModel by @lig in #6201
- Run docstring tests by @dmontagu in #6175
- Add documentation for PlainSerializer and WrapSerializer by @tpdorsey in #6230
- Improve mypy documentation by @hramezani in #6226
- πΈ Improve error message when BaseSettings is imported by @Kludex in #6229
- correct deprecation warning for parse_file by @davidhewitt in #6228
- Update migration docs to include a note about
parse_env_varremoval by @hramezani in #6235 - Add warning about datamodel-code-generator to docs by @hramezani in #6236
- PYD-124: improve docs for
__get_pydantic_core_schema__by @adriangb in #6224 - Minor edits from review of Enum docs by @tpdorsey in #6238
- Update and consolidate links in number types by @tpdorsey in #6239
- Update V2 vs V1 section in README.md by @adriangb in #6242
- Add type key to enums by @adriangb in #6243
- π Restrict range on Python version for
_make_forward_refby @Kludex in #6246 - π Add timeout on
publish_docsjob by @Kludex in #6247 - π· Enable FastAPI tests by @Kludex in #6249
- docs: use _pydantic_core.pyi as only docs source for now by @davidhewitt in #6257
- Reorder basemodel methods by @dmontagu in #6260
- Improve file type docs by @hramezani in #6252
- π§ Add
assigneeslist to the hooky config by @lig in #6264 - Document "wrap" validators by @tpdorsey in #6258
- Update validate_call documentation by @tpdorsey in #6255
- π Update docs about hypothesis by @Kludex in #6266
- Update docs for validation errors by @dmontagu in #6262
- π Improve docstrings on
json_schema.pyby @Kludex in #6267 - Update internal links to be compatible with versions by @tpdorsey in #6271
- Update pydantic-core to 0.42.0 by @adriangb in #6272
- π Add documentation on Special Types by @Kludex in #6269
- Fix deduplication of Enum refs in CoreSchema by @adriangb in #6274
- π₯ Remove
finalkeyword fromFieldby @Kludex in #6284 - Fix relative links for logos by @tpdorsey in #6285
- π Fix
TypeErroron mixed discriminated unions by @lig in #6282 - Defer building discriminated unions until after all schemas are defined by @adriangb in #6288
- Update the return type for RootModel.model_dump and document how to override it by @dmontagu in #6290
- π Fix
RootModel.construct()andRootModel.__init__()results aren't equal by @lig in #6283 - Improve the rendering of the conversion table by @dmontagu in #6275
- Fix privateattr clobbering classvars with future annotations by @dmontagu in #6287
- Add documentation of Strict Mode by @dmontagu in #6276
- π₯ Use custom
PydanticDeprecationWarningwarning instead of the generic one by @lig in #6180 - PYD-140: Fix
use_enum_valuesconfig flag by @adriangb in #6294 - PYD-142: Fix use of Annotated + Field for dataclasses by @adriangb in #6293
- Add missing metadata to computed field JSON schemas by @dmontagu in #6299
- Move export_models to serialization by @tpdorsey in #6303
- Review custom types by @tpdorsey in #6292
- Improve types dict mapping doc by @hramezani in #6265
- Change mypy tests to put comments in-line in a python module by @dmontagu in #6305
- Update installation for release by @tpdorsey in #6289
- Blog and announce bar for v2 release by @tpdorsey in #6291
- Review and update Standard Types by @tpdorsey in #6240
- Update Pydantic V1 to 1.10.10 by @hramezani in #6311
- Document validation context, and fix up some other issues with validators.md by @dmontagu in #6256
- adding page about version compatibility by @samuelcolvin in #6309
- π Add note about page not up-to-date by @Kludex in #6312
- pydantic-core 2.0.1 by @samuelcolvin in #6310
- Update mypy plugin by @dmontagu in #6306
- PYD-131 Links between API and usage docs by @samuelcolvin in #6307
- Remove warning on top of
docs/usage/types/callables.mdby @hramezani in #6318 - Index improvements by @samuelcolvin in #6314
- Prepare for release by @samuelcolvin in #6319
New Contributors
- @davidhewitt made their first contribution in #6228
Full Changelog: v2.0b3...v2.0