netbox-community / go-netbox

The official Go API client for Netbox IPAM and DCIM service.
Other
195 stars 146 forks source link

Swagger model: Rack.Width.Value of wrong type #73

Closed Gorjan87 closed 3 years ago

Gorjan87 commented 4 years ago

Environment

Steps to reproduce

curl -s -H "Authorization: Token ${NETBOX_TOKEN}" -H "Content-Type: application/json" "https://${NETBOX_HOST}/api/dcim/racks/1/"

Expected behaviour

Received object should unmarshall into model of rack

Observed behaviour

Object width received looks like this: { "value": 19, "label": "19 inches" }, where rack model expects a string value @ rack.width.value