Incorrect schema: WritableDeviceWithConfigContext.face should be nullable #7337

Closed
opened 2025-12-29 20:22:05 +01:00 by adam · 2 comments
Owner

Originally created by @wouterdb on GitHub (Dec 9, 2022).

NetBox version

3.3.9

Python version

3.8

Steps to Reproduce

On the API docs, on the WritableDeviceWithConfigContext the 'face' attribute is marked as both required and not nullable.

In practice, it can only be set if rack is also set, which is marked as required and nullable.
It seems to be possible to completely omit both 'rack' and 'face' when creating a 'Device' so I think it is not required and nullable.

Expected Behavior

  • 'WritableDeviceWithConfigContext.rack' is nullable and not required
  • 'WritableDeviceWithConfigContext.face' is nullable and not required

Observed Behavior

/

Originally created by @wouterdb on GitHub (Dec 9, 2022). ### NetBox version 3.3.9 ### Python version 3.8 ### Steps to Reproduce On the [API docs](https://demo.netbox.dev/api/docs/#model-WritableDeviceWithConfigContext), on the `WritableDeviceWithConfigContext` the 'face' attribute is marked as both required and not nullable. In practice, it can only be set if `rack` is also set, which is marked as required and nullable. It seems to be possible to completely omit both 'rack' and 'face' when creating a 'Device' so I think it is not required and nullable. ### Expected Behavior - 'WritableDeviceWithConfigContext.rack' is nullable and not required - 'WritableDeviceWithConfigContext.face' is nullable and not required ### Observed Behavior /
adam added the type: bugstatus: needs ownerpending closure labels 2025-12-29 20:22:05 +01:00
adam closed this issue 2025-12-29 20:22:05 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 12, 2023):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Feb 12, 2023): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Mar 14, 2023):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (Mar 14, 2023): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7337