v2.0.1 2023-07-04
What's Changed
- π Add note about Bump Pydantic by @Kludex in #6281
- Parse Decimal in python to avoid precision loss by @adriangb in #6321
- Fix typo of
model_parametrized_name
indocs/usage/models.md
by @hramezani in #6325 - fix(docs): typo fix for docs by @ozgurturkiye in #6335
- Allow
__modify_schema__
to co-exist__get_pydantic_json_schema__
by @adriangb in #6334 - Fix tagged unions multiple processing in submodels by @suharnikov in #6340
- Unpack json schema refs for custom types by @adriangb in #6315
- Fix typo in
create_model
function by @TimDiekmann in #6347 - Update README.md by @weqopy in #6363
- Adding extra field via
setattr
adds field to model_extra by @aaraney in #6365 - Fix
validate_call
schema generation and doc error forTypedDict
by @adriangb in #6370 - π Include
Mac Address
documentation by @yezz123 in #6367 - Remove warning from top of
docs/usage/types/encoded.md
by @hramezani in #6377 - Remove datamodel code generator not working warning from doc by @hramezani in #6378
- Fix some uses of
Field
inside ofAnnotated
by @adriangb in #6373 - π¨ Include
pydantic-extra-types
to integration tests by @yezz123 in #6344 - add davidhewitt to hooky respondents by @davidhewitt in #6385
- Update pydantic-core to 2.0.2 by @adriangb in #6389
- π Don't call
repr()
on qualname retrieval by @Kludex in #6382 - Warn instead of error protected namespace by @dmontagu in #6326
- Do not recommend raising
TypeError
in validators by @Viicos in #6391 - Test model_extra is None when extra='forbid' by @dmontagu in #6341
- Remove --verbose flag from docs build to clean up CI logs by @adriangb in #6399
- Add note about changes to regex engine used by @adriangb in #6400
- Allow combining
Field
annotations by merging them by @adriangb in #6398 - BaseSettings moved, not removed by @tpdorsey in #6401
- Bind
validate_call
to instance when decorating methods by @dmontagu in #6406 - π Use "result" instead of "status" on GitHub Action conditional by @Kludex in #6410
- Update models.md by @dmontagu in #6331
- π Add
__hash__
forWithJsonSchema
andExamples
by @Kludex in #6414 - π Fix generic tuple cannot have more than one item by @lig in #6384
- Upate mypy plugin to consider pydantic-settings model by @hramezani in #6396
- Improve
BaseModel.__getattr__
to raise a better error in case of AttributeError in model property by @hramezani in #6417 - Fix issue where validate_call methods would break when accessed as a class attribute by @dmontagu in #6431
- Update Pydantic V1 to 1.10.11 by @hramezani in #6427
- Rework how JSON schema refs get built/"simplified" by @dmontagu in #6402
- Prepare for v2.0.1 by @dmontagu in #6433
- π Use
main-pv2
FastAPI branch in integration tests by @lig in #6432
New Contributors
- @ozgurturkiye made their first contribution in #6335
- @suharnikov made their first contribution in #6340
- @TimDiekmann made their first contribution in #6347
- @weqopy made their first contribution in #6363
- @aaraney made their first contribution in #6365
Full Changelog: v2.0...v2.0.1