Skip to content

chore: upgrade openapi-generator to v7.10.0 #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 22, 2025
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ GIT_REPO=equinix-sdk-python
PACKAGE_VERSION=$(shell cat version)
USER_AGENT=${GIT_REPO}/${PACKAGE_VERSION}

OPENAPI_IMAGE_TAG=v7.4.0
OPENAPI_IMAGE_TAG=v7.10.0
OPENAPI_IMAGE=openapitools/openapi-generator-cli:${OPENAPI_IMAGE_TAG}
CRI=docker # nerdctl
OPENAPI_GENERATOR=${CRI} run --rm -u ${CURRENT_UID}:${CURRENT_GID} -v $(CURDIR):/local ${OPENAPI_IMAGE}
Expand Down
8 changes: 7 additions & 1 deletion Makefile.metalv1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ patch:

# TODO: fetch the merged (single-file) spec
# instead of merging it here
${OPENAPI_GENERATOR} generate \
# *NOTE*: Due to a bug in swagger-parser, we have
# to use v7.4.0 of openapi-generator to merge the
# spec in order to avoid introducing duplicate models
${CRI} run --rm -u ${CURRENT_UID}:${CURRENT_GID} \
-v $(CURDIR):/local \
openapitools/openapi-generator-cli:v7.4.0 \
generate \
-i /local/${SPEC_PATCHED_DIR}/${SPEC_ROOT_FILE} \
-g openapi-yaml \
-p skipOperationExample=true -p outputFile=${SPEC_ROOT_FILE} \
Expand Down
Loading
Loading