The OpenAPI Generator is used for code generation: https://openapi-generator.tech/.
Generated code is checked-in to the repository, so that the user can go get the library.
Development steps:
Run tests: go test ./...
Format the code: go fmt ./...
Generate the client: ./generate_client.sh
Generate the stub server: ./generate_server.sh
Generate documentation: ./generate_docs.sh
Note that due to the design of OpenAPI generator, some generated files of the stub server need to be filled manually. They are listed in following files: