We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a85035 commit 57f3ea5Copy full SHA for 57f3ea5
1 file changed
Makefile.metalv1
@@ -28,7 +28,13 @@ patch:
28
29
# TODO: fetch the merged (single-file) spec
30
# instead of merging it here
31
- ${OPENAPI_GENERATOR} generate \
+ # *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 \
38
-i /local/${SPEC_PATCHED_DIR}/${SPEC_ROOT_FILE} \
39
-g openapi-yaml \
40
-p skipOperationExample=true -p outputFile=${SPEC_ROOT_FILE} \
0 commit comments