v0.13.0
What's Changed
New features
New custom class (de)serializer allows to extend pyserde to support third party types in a neat and robust way. Also custom global (de)serializer is a game changer to allow sharing and reusing custom serializers across different python projects. See custom class serializer and custom global serializer for more information.
e.g. Implementing serializer for datetime and int
class Serializer:
# Custom serializer for "datetime"
@overload
def serialize(self, value: datetime) -> str:
return value.strftime("%d/%m/%y")
# Custom serializer for "int"
@overload
def serialize(self, value: int) -> Any:
return str(value)
....- Fix type error from field with attributes by @yukinarit in #458
- Implement new class (de)serializer by @yukinarit in #456
- Implement global (de)serializer by @yukinarit in #459
Build
- Drop python3.7 by @yukinarit in #460
Documentation
- Fix external union example in union.md by @yukinarit in #455
Full Changelog: v0.12.7...v0.13.0