netbox-community / go-netbox

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

[WIP] Replace "go-swagger" by "oapi-codegen" #161

Closed v0ctor closed 6 months ago

v0ctor commented 9 months ago

Since version 3.5, Netbox specifies its API with OpenAPI 3. Thus, it is no longer possible to keep this project up to date, as it is generated using go-swagger, a library that doesn't support OpenAPI 3 and has no intention to do so.

This PR replaces go-swagger by oapi-codegen and rebuilds the library for the latest version of Netbox (3.6.3). This change is completely incompatible with previous versions of the library. This is an alternative option to PR #157.

Note that this is a work in progress. I still didn't test the changes.

Any comments, suggestions or corrections are welcome! Furthermore, everyone is invited to participate in the OpenAPI 3 migration discussion.

shamil2 commented 7 months ago

Hello, any update on this PR?

zyxep commented 7 months ago

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

v0ctor commented 6 months ago

Closing, since "openapi-generation" has been chosen as the final option.