Release 0.3.0
Support wider range of python types automatically:
Union
handled by converting toVariant
with tags autogenerated from type names. If unique names for all the variants cannot be generated, will fail.Tuple
handled as specialStruct
with numbered fields,PairType
is deprecated.- Literals
- Enums, mapped to variants tagged by enum name, with empty struct values.
- Pydantic wrapped dataclasses
- Pydantic constrained numeric types and string
- Pydantic discriminated unions - mapped to Variant with discriminant set as tag
Full changelog: v0.2.1...v0.3.0