Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Set user-agent and package version #86

Merged
merged 1 commit into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ To exclude resources, and optimize response delivery, use the `exclude` query pa
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 1.0.0
- Package version: 1.0.0
- Package version: 0.7.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ GIT_ORG=equinix-labs
GIT_REPO=metal-go
PACKAGE_PREFIX=metal
PACKAGE_MAJOR=v1
PACKAGE_VERSION=0.7.0
CRI=docker # nerdctl

OPENAPI_GENERATOR=${CRI} run --rm -u ${CURRENT_UID}:${CURRENT_GID} -v $(CURDIR):/local ${OPENAPI_IMAGE}
Expand Down Expand Up @@ -59,6 +60,8 @@ clean:
gen:
${OPENAPI_GENERATOR} generate -g go \
--package-name ${PACKAGE_MAJOR} \
--http-user-agent "${GIT_REPO}/${PACKAGE_VERSION}" \
-p packageVersion=${PACKAGE_VERSION} \
-p isGoSubmodule=true \
-p disallowAdditionalPropertiesIfNotPresent=false \
--model-package types \
Expand Down
2 changes: 1 addition & 1 deletion metal/v1/configuration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.