-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
severity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtopic: OpenAPItype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
Deployment Type
Self-hosted
NetBox Version
v4.0.5
Python Version
3.10
Steps to Reproduce
- Go to https://demo.netbox.dev/api/schema/swagger-ui/
- Scroll down to
DeviceSchema and look at theparent_devicefield
Expected Behavior
It should contain an annotation nullable: true.
Observed Behavior
It does not contain that annotation.
The fix for this should be to add allow_null=True to SerializerMethodField here:
| parent_device = serializers.SerializerMethodField() |
Happy to put up a PR but it might be easier for a maintainer to just make the change and directly merge it.
Metadata
Metadata
Assignees
Labels
severity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtopic: OpenAPItype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application