Ensure all SerializerMethodFields are appropriately documented #2438

Closed
opened 2025-12-29 17:26:05 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Mar 5, 2019).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

We use SerializerMethodFields for some serializer fields with unique requirements. We should try to replace these with actual serializers, or at least ensure that they are properly documented.

Justification

This was identified as an area for improvement during the discussion under #2665.

Originally created by @jeremystretch on GitHub (Mar 5, 2019). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes We use SerializerMethodFields for some serializer fields with unique requirements. We should try to replace these with actual serializers, or at least ensure that they are [properly documented](https://drf-yasg.readthedocs.io/en/stable/custom_spec.html#support-for-serializermethodfield). ### Justification This was identified as an area for improvement during the discussion under #2665.
adam added the type: bugstatus: accepted labels 2025-12-29 17:26:05 +01:00
adam closed this issue 2025-12-29 17:26:05 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2438