Closed Gorjan87 closed 3 years ago
Go 1.14.2
NetBox version 2.7.11
curl -s -H "Authorization: Token ${NETBOX_TOKEN}" -H "Content-Type: application/json" "https://${NETBOX_HOST}/api/dcim/racks/1/"
Received object should unmarshall into model of rack
Object width received looks like this: { "value": 19, "label": "19 inches" }, where rack model expects a string value @ rack.width.value
Environment
Go 1.14.2
NetBox version 2.7.11
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