Releases: oxan/djangorestframework-dataclasses
Releases · oxan/djangorestframework-dataclasses
djangorestframework-dataclasses v0.7
Breaking changes:
- The
validated_datarepresentation now contains therest_framework.fields.emptysentinel value for fields where no value was provided, instead of the default of the dataclass field. The value returned bysave()is unchanged. This was necessary to support partial updates.
Features & fixes:
- Improved Python 3.9 compatibility.
- Support partial updates.
- Support standard collection generics (PEP 585).
- Support non-generic
listanddicttypehints. - Support final fields (PEP 591).
- Support auto-generation for list or dictionaries of Any or variable type.
- Set default
max_digitsanddecimal_placesforDecimalField. - Improved error message when automatic field type deduction fails.
djangorestframework-dataclasses v0.6
- Rewrite to
save()implementation to finally fix all issues with nested serializers. - Fix deserialization for fields using
sourceoption. - Fix explicit specification of a method in the
fieldsoption.
djangorestframework-dataclasses v0.5
- Make optional fields on the dataclass optional on the serializer as well.
- Fix (de-)serialization of dataclass lists specified with
many=True. - Fix deserialization of nullable nested dataclasses.
- Raise error when field is both declared and is present in
extra_kwargs. - Raise error when non-existing fields are included in
fieldsoption. - Minor performance improvements.
djangorestframework-dataclasses v0.4
- Automatically recognize
Literal-typed fields (PEP 586). - Fix deserialization of dataclasses inside dictionaries.
- Improve error message when encountering field with a special form type.
djangorestframework-dataclasses v0.3
- Automatically recognize UUID fields.
- Fix saving with nested dataclasses.
djangorestframework-dataclasses v0.2
- Support arbitrary nesting of dictionaries and lists.
- Support putting
__all__magic option infieldsoption onMetaclass.
djangorestframework-dataclasses v0.1
Initial release.