Closed
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
Device
Schema and look at theparent_device
field
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:
Happy to put up a PR but it might be easier for a maintainer to just make the change and directly merge it.