rsinger86 / drf-flex-fields

Dynamically set fields and expand nested resources in Django REST Framework serializers.
MIT License
736 stars 61 forks source link

Add `FlexSerializerMethodField` #133

Open Caiofcas opened 1 year ago

Caiofcas commented 1 year ago

Attempt at implementation of the FlexSerializerMethodField class discussed in #54 with docs and test coverage.

The case I used as a test for both the doc and unittests seems like it could be more simple, but I couldn't think of any simpler serializer structure.