netbox-community / go-netbox

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

Improve code generation #143

Closed v0ctor closed 1 year ago

v0ctor commented 1 year ago

This PR adds a containerized development environment and a new code generation workflow. Both allow to deterministically generate the library for any Netbox version by running a single command on any UNIX platform that supports Docker with no need to install additional dependencies.

Schema and code fixes are applied now by pre-generation and post-generation hooks, respectively. This approach makes it possible to automatically apply patches to fix known issues on every code generation.