Skip to content

Commit 57f3ea5

Browse files
committed
keep old openapi-generator for Metal spec merge
1 parent 0a85035 commit 57f3ea5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

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)