View Code? Open in Web Editor
NEW
This package allows you to customize your django-rest-framework serializer i/o in specific ways.
Home Page: https://pypi.org/project/drf-payload-customizer/
License: Apache License 2.0
drf-payload-customizer's People
drf-payload-customizer's Issues
@dodekeract found some edge-cases where inflection can mess things up. For eg, with UUID-123
which surprisingly got converted to UUID123
.
Let us use a custom regex based approach here. Might be expensive, but better in the long run.
Not available right now. Probably as drf-payload-customizer
?
Right now we have a PayloadConverterMixin
which do two things:
- Transform casing (snake_case <-> camelCase)
- Translate keys - using custom mapped fields.
For a project to use our plugin, we should have the following:
PayloadTransformationMixin
- for casing stuff
PayloadTranslationMixin
- for field mapping
PayloadCustomizationMixin
combines (1) and (2) above.