Breaking: Pydantic V2 Transition
This is a long pull-request coming and finally updates turms to pydantic version v2 and beyond, with this update
turms itself will depend on pydantic v2 and will generate pydantic v2 compliant code (no more Config class but ConfigDict).
Additional thanks to @rnovacek the optional types have now default values, which also complies with pydantic v2.
You can still generate pydantic_v1 code by setting the:
pydantic_version: v1
However this is deprecated and will be replaced in future versions.
Thanks everyone for waiting for this release. Its been a busy year :D
What's Changed
- Set default values for optional field in input types by @rnovacek in #75
- Add Pydantic v2 support by @jhnnsrs in #77
New Contributors
Full Changelog: v0.5.0...v0.6.0