Skip to content

Commit

Permalink
set openapi-generator-cli version in Makefile (#64)
Browse files Browse the repository at this point in the history
Signed-off-by: Doron Chen <[email protected]>
  • Loading branch information
cdoron authored Jun 6, 2023
1 parent da871a6 commit 86b1831
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ GIT_REPO_ID_CLIENT := datacatalog-go-client

AUTO_GENERATED = auto-generated
FYBRIK_VERSION ?= v1.2.1
OPENAPI_GENERATOR_API_VERSION ?= v6.4.0

DOCKER_HOSTNAME ?= ghcr.io
DOCKER_NAMESPACE ?= fybrik
Expand Down Expand Up @@ -39,7 +40,7 @@ generate-code:
docker run --rm \
-v ${PWD}:/local \
-u "${USER_ID}:${GROUP_ID}" \
openapitools/openapi-generator-cli generate -g go-server \
openapitools/openapi-generator-cli:${OPENAPI_GENERATOR_API_VERSION} generate -g go-server \
--additional-properties=serverPort=8081 \
--git-host=${GIT_HOST} \
--git-user-id=${GIT_USER_ID} \
Expand All @@ -49,7 +50,7 @@ generate-code:
docker run --rm \
-v ${PWD}:/local \
-u "${USER_ID}:${GROUP_ID}" \
openapitools/openapi-generator-cli generate -g go \
openapitools/openapi-generator-cli:${OPENAPI_GENERATOR_API_VERSION} generate -g go \
--global-property=models,supportingFiles \
--git-host=${GIT_HOST} \
--git-user-id=${GIT_USER_ID} \
Expand All @@ -60,7 +61,7 @@ generate-code:
docker run --rm \
-v ${PWD}:/local \
-u "${USER_ID}:${GROUP_ID}" \
openapitools/openapi-generator-cli generate -g go \
openapitools/openapi-generator-cli:${OPENAPI_GENERATOR_API_VERSION} generate -g go \
--git-host=${GIT_HOST} \
--git-user-id=${GIT_USER_ID} \
--git-repo-id=${GIT_REPO_ID_CLIENT} \
Expand Down

0 comments on commit 86b1831

Please sign in to comment.