Skip to content

Commit 62dbc7d

Browse files
authored
chore: upgrade openapi-generator to v7.10.0 (#40)
2 parents bc999b8 + 57f3ea5 commit 62dbc7d

File tree

1,685 files changed

+5589
-3749
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,685 files changed

+5589
-3749
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ GIT_REPO=equinix-sdk-python
88
PACKAGE_VERSION=$(shell cat version)
99
USER_AGENT=${GIT_REPO}/${PACKAGE_VERSION}
1010

11-
OPENAPI_IMAGE_TAG=v7.4.0
11+
OPENAPI_IMAGE_TAG=v7.10.0
1212
OPENAPI_IMAGE=openapitools/openapi-generator-cli:${OPENAPI_IMAGE_TAG}
1313
CRI=docker # nerdctl
1414
OPENAPI_GENERATOR=${CRI} run --rm -u ${CURRENT_UID}:${CURRENT_GID} -v $(CURDIR):/local ${OPENAPI_IMAGE}

Makefile.metalv1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ patch:
2828

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

0 commit comments

Comments
 (0)