diff --git a/bin/cpp-qt5-petstore.json b/bin/cpp-qt5-petstore.json new file mode 100644 index 00000000000..b27f55f17f8 --- /dev/null +++ b/bin/cpp-qt5-petstore.json @@ -0,0 +1,8 @@ +{ + "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", + "outputDir": "samples/client/petstore/cpp-qt5", + "additionalProperties": { + "cppNamespace": "test_namespace", + "modelNamePrefix": "PFX" + } +} diff --git a/bin/cpp-qt5-petstore.sh b/bin/cpp-qt5-petstore.sh index 68760f66505..f870163d69a 100755 --- a/bin/cpp-qt5-petstore.sh +++ b/bin/cpp-qt5-petstore.sh @@ -30,8 +30,7 @@ export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" args="generate -t modules/openapi-generator/src/main/resources/cpp-qt5-client \ -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml \ -g cpp-qt5-client \ - --additional-properties=cppNamespace=test_namespace \ - --additional-properties=modelNamePrefix=PFX \ - -o samples/client/petstore/cpp-qt5 $@" + -c cpp-qt5-petstore.json \ + $@" java $JAVA_OPTS -jar $executable $args