Code development platform for open source projects from the European Union institutions 🔵 EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content

🐛 Invalid OpenAPI schema

Netbox Version Plugin Version
3.6.9 1.0.1

Actual Behavior

The following schemas:

  • MacAddress
  • MacAddressRequest
  • PatchedMacAddressRequest

All have a status field which is a nullable string. The OpenAPI schema defines an enum of valid choices:

"enum": [
  "active",
  "inactive",
  "quarantined",
  "",
  null
],

Yet, the default value has a typo:

"default": "Inactive",

This produce an error when trying to generate the Python Client ( https://code.europa.eu/digit-c4/netbox/python-netbox-client ).

Desired Behavior

The default value should be lowercase to match exactly the values in the enum, I edited the OpenAPI schema after downloading it to be able to generate the Python Client.