netbox-community / go-netbox

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

Netbox 3.6 field defintions don't match #159

Closed gboor closed 10 months ago

gboor commented 1 year ago

I'm on Netbox 3.6 and found that the definition of WritableDeviceWithConfigContext is incorrect. In the API definition it asks for a role field with an integer ID for the role, but in this generated client, the field is called device_role, which no longer seems to exist. This means I cannot create a device with this library.

Is there any way to resolve this without locally overriding the model?

davidovich commented 1 year ago

see #155.

v0ctor commented 10 months ago

A new alpha version that supports the latest Netbox version has been released.

Please feel free to test it and to provide feedback.