[OpenAPI] _occupied is type of string, instead boolean #4932

Closed
opened 2025-12-29 19:22:22 +01:00 by adam · 0 comments
Owner

Originally created by @FalcoSuessgott on GitHub (May 20, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11.1

Python version

3.9

Steps to Reproduce

Currently the field _occupied is implemented as type of string instead of boolean. This applies for all models with the field _occupied.

See CircuitTermination:
[...]

"_occupied": {
   "title": "occupied",
   "type": "string",
   "readOnly": true
}

Expected Behavior

I expect _occupied to by type of boolean.

Observed Behavior

Unable to Parse API Response

Originally created by @FalcoSuessgott on GitHub (May 20, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11.1 ### Python version 3.9 ### Steps to Reproduce Currently the field `_occupied` is implemented as type of `string` instead of `boolean`. This applies for all models with the field `_occupied`. See `CircuitTermination`: [...] ```json "_occupied": { "title": "occupied", "type": "string", "readOnly": true } ``` ### Expected Behavior I expect `_occupied` to by type of boolean. ### Observed Behavior Unable to Parse API Response
adam added the type: bugstatus: accepted labels 2025-12-29 19:22:22 +01:00
adam closed this issue 2025-12-29 19:22:22 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4932