Skip to content

Commit

Permalink
keep old openapi-generator for Metal spec merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Jan 17, 2025
1 parent 0a85035 commit 57f3ea5
Showing 1 changed file with 7 additions and 1 deletion.
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

0 comments on commit 57f3ea5

Please sign in to comment.