netbox-community / go-netbox

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

Call to IpamVlanGroupsRead fails #134

Closed joeyberkovitz closed 1 year ago

joeyberkovitz commented 2 years ago

The Swagger definition for the Scope field in a VLAN group is listed as a string, although it can be an object as well. Example:

"scope": {
    "id": 1,
    "url": "http://netbox/api/dcim/sites/1/",
    "display": "TEST Site",
    "name": "TEST Site",
    "slug": "test"
},

When this happens, the API call fails with an unmarshaling error.

v0ctor commented 1 year ago

As the library is automatically generated from the Netbox OpenAPI specification, specification-related issues should be created in the Netbox project.

Anyway, this issue seems to be fixed in the current specification (see line 92679).