v0.5.0 - Major Rewrite, Nothing Should Break
If this release breaks your code, please create an issue here.
This rewrites pydantic_yaml
to be based on the YamlModelMixin
class. YamlModel
is still available, but is now just a subclass of YamlModelMixin
and BaseModel
. This gives a lot more flexibility to the user. 😄
This also adds some pretty neat basic type classes:
YamlStr
andYamlInt
are base classes for YAML-enabled string and int subclasses.YamlStrEnum
andYamlIntEnum
are enum superclasses that remove a lot of the strange edge cases with YAML serialization (and custom enum types).
This release deprecates YamlEnum
, though users will just be nagged to switch to YamlStrEnum
for now until the next major release (or until I remember, whichever comes later).
The release has been tested against old tests, which have also been slightly improved. However, since the tests weren't extremely extensive, I assume this may break something for some users.
What's Changed
- Full rewrite to use Mixin classes by @NowanIlfideme in #9
Full Changelog: v0.4.3...v0.5.0