netbox-community/go-netbox

Netbox 3.5+ support

jqueuniet opened this issue · 6 comments

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?

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! 🤩

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.

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

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

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

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

Please feel free to test it and to provide feedback.