Remove all obsolete nested REST API serializers #10095

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

Originally created by @jeremystretch on GitHub (Aug 14, 2024).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Remove all nested_serializers modules within each app, as these classes are no longer utilized.

Justification

The use of static nested API serializer classes (except where needed to resolve circular imports) was deprecated in NetBox v4.1 under #17143.

Impact

These serializers will no longer be available for use by plugins. They can be replaced by passing nested=True to a model's primary serializer. For example:

device = NestedDeviceSerializer()

can be replaced with

device = DeviceSerializer(nested=True)
Originally created by @jeremystretch on GitHub (Aug 14, 2024). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Remove all `nested_serializers` modules within each app, as these classes are no longer utilized. ### Justification The use of static nested API serializer classes (except where needed to resolve circular imports) was deprecated in NetBox v4.1 under #17143. ### Impact These serializers will no longer be available for use by plugins. They can be replaced by passing `nested=True` to a model's primary serializer. For example: ```python device = NestedDeviceSerializer() ``` can be replaced with ```python device = DeviceSerializer(nested=True) ```
adam added the status: acceptedtype: deprecationbreaking changecomplexity: low labels 2025-12-29 21:26:49 +01:00
adam closed this issue 2025-12-29 21:26:49 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10095