netbox-community / go-netbox

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

Netbox 3.5+ support #155

Closed jqueuniet closed 10 months ago

jqueuniet commented 1 year ago

I realise this is far from trivial given the upstream switch to OpenAPI 3 which is not supported by go-swagger, but is there currently any plan for Netbox 3.5+ support in this project? And is there any need for help to move forward on this issue?

v0ctor commented 1 year ago

I created a discussion to address the migration to a library compatible with OpenAPI 3.

I also created an experimental PR to test openapi-generator, as it seems the most viable option.

Please feel free to participate! 🤩

davidovich commented 1 year ago

May I also suggest https://github.com/deepmap/oapi-codegen which is written in go, so may lower the impedance mismatch. It generates idiomatic go and is compatible with OpenAPI 3.

tjdavis3 commented 1 year ago

Another suggesting is https://github.com/ogen-go/ogen. Similar to oapi-codegen and also written in go.

v0ctor commented 1 year ago

After investigating these options and others that I finally discarded, I made another PR (#161) using oapi-codegen as an alternative.

I am going to try it out, but at the moment I like this alternative better because it seems simpler and more idiomatic.

zyxep commented 12 months ago

any updates on this one? the new OAPI specs is kinda blocking me from upgrading my netbox instance :(

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.