netbox-community / go-netbox

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

Role field is missing in struct WritableDeviceWithConfigContext #164

Closed rogerscuall closed 6 months ago

rogerscuall commented 6 months ago

Trying to create any device the with the version v3.4.5 should fail, because the structWritableDeviceWithConfigContext is missing the field Role. Not sure where/when this broke, but on the version 3.6.3 of openapi.yml I can see the WritableDeviceWithConfigContextRequest has a field/property named Role instead of DeviceRole. To fix this I'm just rebuilding and seems to work for me.

v0ctor commented 6 months ago

A new alpha version has been released with a different software to generate the library, so hopefully this bug has been resolved.

Please feel free to test it and to provide feedback.

rogerscuall commented 6 months ago

It did indeed. That is how I'm running now. I only found 2 minor issues with your relase. I have been using it with it for the last week. Thanks for letting me know I will update to the latest version soon. Thanks again.