Skip to content

Commit

Permalink
chore: upgrade openapi-generator to v7.10.0 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma authored Jan 22, 2025
2 parents bc999b8 + 57f3ea5 commit 62dbc7d
Show file tree
Hide file tree
Showing 1,685 changed files with 5,589 additions and 3,749 deletions.
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

0 comments on commit 62dbc7d

Please sign in to comment.