Published July 25, 2023
| Version v2.1.0
Software
Open
pydantic/pydantic: v2.1.0 2023-07-25
Authors/Creators
- Samuel Colvin1
- David Montague2
- Adrian Garcia Badaracco
- Hasan Ramezani1
- Eric Jolibois3
- Marcelo Trylesinski4
- Terrence Dorsey
- pyup.io bot5
- Serge Matveenko6
- Arseny Boykov7
- Sebastián Ramírez
- Nikita Grishko8
- Koudai Aono9
- David Hewitt1
- Yurii Karabas10
- Vitaly Samigullin
- Stephen Brown II11
- Amin Alaee
- Davis Kirkendall12
- layday
- Daniel Smith13
- Marc Mueller
- Yasser Tahiri14
- Nuno André15
- Hmvp
- John Carter
- Ofek Lev16
- Viicos
- 1. @pydantic
- 2. Pydantic
- 3. @ToucanToco
- 4. @encode @pydantic
- 5. @pyupio
- 6. Assaia
- 7. Boloo Team
- 8. @PandaDoc
- 9. Tractable @tractableai
- 10. @NewfirePartners
- 11. JumpCloud
- 12. ONIQ GmbH
- 13. Flagship Pioneering
- 14. Yezz LLC.
- 15. @forensic-security
- 16. @datadog
Description
What's Changed
- Add StringConstraints for use as Annotated metadata by @adriangb in https://github.com/pydantic/pydantic/pull/6605
- Try to fix intermittently failing CI by @adriangb in https://github.com/pydantic/pydantic/pull/6683
- Remove redundant example of optional vs default. by @ehiggs-deliverect in https://github.com/pydantic/pydantic/pull/6676
- Docs update by @samuelcolvin in https://github.com/pydantic/pydantic/pull/6692
- Remove the Validate always section in validator docs by @adriangb in https://github.com/pydantic/pydantic/pull/6679
- Fix recursion error in json schema generation by @adriangb in https://github.com/pydantic/pydantic/pull/6720
- Fix incorrect subclass check for secretstr by @AlexVndnblcke in https://github.com/pydantic/pydantic/pull/6730
- update pdm / pdm lockfile to 2.8.0 by @davidhewitt in https://github.com/pydantic/pydantic/pull/6714
- unpin pdm on more CI jobs by @davidhewitt in https://github.com/pydantic/pydantic/pull/6755
- improve source locations for auxiliary packages in docs by @davidhewitt in https://github.com/pydantic/pydantic/pull/6749
- Assume builtins don't accept an info argument by @adriangb in https://github.com/pydantic/pydantic/pull/6754
- Fix bug where calling
help(BaseModelSubclass)raises errors by @hramezani in https://github.com/pydantic/pydantic/pull/6758 - Fix mypy plugin handling of @model_validator(mode="after") by @ljodal in https://github.com/pydantic/pydantic/pull/6753
- update pydantic-core to 2.3.1 by @davidhewitt in https://github.com/pydantic/pydantic/pull/6756
- Mypy plugin for settings by @hramezani in https://github.com/pydantic/pydantic/pull/6760
- Use contentSchema keyword for JSON schema by @dmontagu in https://github.com/pydantic/pydantic/pull/6715
- fast-path checking finite decimals by @davidhewitt in https://github.com/pydantic/pydantic/pull/6769
- Docs update by @samuelcolvin in https://github.com/pydantic/pydantic/pull/6771
- Improve json schema doc by @hramezani in https://github.com/pydantic/pydantic/pull/6772
- Update validator docs by @adriangb in https://github.com/pydantic/pydantic/pull/6695
- Fix typehint for wrap validator by @dmontagu in https://github.com/pydantic/pydantic/pull/6788
- 🐛 Fix validation warning for unions of Literal and other type by @lig in https://github.com/pydantic/pydantic/pull/6628
- Update documentation for generics support in V2 by @tpdorsey in https://github.com/pydantic/pydantic/pull/6685
- add pydantic-core build info to
version_info()by @samuelcolvin in https://github.com/pydantic/pydantic/pull/6785 - Fix pydantic dataclasses that use slots with default values by @dmontagu in https://github.com/pydantic/pydantic/pull/6796
- Fix inheritance of hash function for frozen models by @dmontagu in https://github.com/pydantic/pydantic/pull/6789
- ✨ Add
SkipJsonSchemaannotation by @Kludex in https://github.com/pydantic/pydantic/pull/6653 - Error if an invalid field name is used with Field by @dmontagu in https://github.com/pydantic/pydantic/pull/6797
- Add GenericModel to MOVED_IN_V2 by @adriangb in https://github.com/pydantic/pydantic/pull/6776
- Remove unused code from
docs/usage/types/custom.mdby @hramezani in https://github.com/pydantic/pydantic/pull/6803 - Fix float -> Decimal coercion precision loss by @adriangb in https://github.com/pydantic/pydantic/pull/6810
- remove email validation from the north star benchmark by @davidhewitt in https://github.com/pydantic/pydantic/pull/6816
- Fix link to mypy by @progsmile in https://github.com/pydantic/pydantic/pull/6824
- Improve initialization hooks example by @hramezani in https://github.com/pydantic/pydantic/pull/6822
- Fix default port for mongosrv DSNs by @dmontagu in https://github.com/pydantic/pydantic/pull/6827
- Improve API documentation, in particular more links between usage and API docs by @samuelcolvin in https://github.com/pydantic/pydantic/pull/6780
- update pydantic-core to 2.4.0 by @davidhewitt in https://github.com/pydantic/pydantic/pull/6831
- Fix annotated_types.MaxLen validator for custom sequence types by @ImogenBits in https://github.com/pydantic/pydantic/pull/6809
- Update V1 by @hramezani in https://github.com/pydantic/pydantic/pull/6833
- Make it so callable JSON schema extra works by @dmontagu in https://github.com/pydantic/pydantic/pull/6798
- Fix serialization issue with InstanceOf by @dmontagu in https://github.com/pydantic/pydantic/pull/6829
- Add back support for
json_encodersby @adriangb in https://github.com/pydantic/pydantic/pull/6811 - Update field annotations when building the schema by @dmontagu in https://github.com/pydantic/pydantic/pull/6838
- Use WeakValueDictionary to fix generic memory leak by @dmontagu in https://github.com/pydantic/pydantic/pull/6681
- Add
config.defer_buildto optionally make model building lazy by @samuelcolvin in https://github.com/pydantic/pydantic/pull/6823 - delegate UUID serialization to pydantic-core by @davidhewitt in https://github.com/pydantic/pydantic/pull/6850
- Update
json_encodersdocs by @adriangb in https://github.com/pydantic/pydantic/pull/6848 - Fix error message for staticmethod/classmethod order with validate_call by @dmontagu in https://github.com/pydantic/pydantic/pull/6686
- Improve documentation for config by @samuelcolvin in https://github.com/pydantic/pydantic/pull/6847
- Update serialization doc to mention
Field.excludetakes priority over call-timeinclude/excludeby @hramezani in https://github.com/pydantic/pydantic/pull/6851 - Allow customizing core schema generation by making
GenerateSchemapublic by @adriangb in https://github.com/pydantic/pydantic/pull/6737 - Prepare for release of v2.1.0 by @samuelcolvin in https://github.com/pydantic/pydantic/pull/6853
- @ehiggs-deliverect made their first contribution in https://github.com/pydantic/pydantic/pull/6676
- @AlexVndnblcke made their first contribution in https://github.com/pydantic/pydantic/pull/6730
- @ljodal made their first contribution in https://github.com/pydantic/pydantic/pull/6753
- @progsmile made their first contribution in https://github.com/pydantic/pydantic/pull/6824
- @ImogenBits made their first contribution in https://github.com/pydantic/pydantic/pull/6809
Full Changelog: https://github.com/pydantic/pydantic/compare/v2.0.3...v2.1.0
Files
pydantic/pydantic-v2.1.0.zip
Additional details
Related works
- Is supplement to
- https://github.com/pydantic/pydantic/tree/v2.1.0 (URL)