From e1495eee42c320e01757c469178f2896d5d6fcea Mon Sep 17 00:00:00 2001 From: jroyan <jerome.royan@b-com.com> Date: Wed, 15 Nov 2023 11:43:38 +0100 Subject: [PATCH] force the use of version 6.6.0 of openapi-generator-cli due to a bug since version 7 (https://github.com/OpenAPITools/openapi-generator/issues/16711) --- package.json | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index dd60ec8..3e1c9a9 100644 --- a/package.json +++ b/package.json @@ -1,33 +1,25 @@ { "//": [ - "ARF - Augmented Reality Framework (ETSI ISG ARF)", - - "Copyright 2022 ETSI", - - "Licensed under the Apache License, Version 2.0 (the \"License\");", - "you may not use this file except in compliance with the License.", - "You may obtain a copy of the License at", - - "http://www.apache.org/licenses/LICENSE-2.0", - - "Unless required by applicable law or agreed to in writing, software", - "distributed under the License is distributed on an \"AS IS\" BASIS,", - "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", - "See the License for the specific language governing permissions and", - "limitations under the License.", - - "Last change: June 2022" - ], + "ARF - Augmented Reality Framework (ETSI ISG ARF)", + "Copyright 2022 ETSI", + "Licensed under the Apache License, Version 2.0 (the \"License\");", + "you may not use this file except in compliance with the License.", + "You may obtain a copy of the License at", + "http://www.apache.org/licenses/LICENSE-2.0", + "Unless required by applicable law or agreed to in writing, software", + "distributed under the License is distributed on an \"AS IS\" BASIS,", + "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", + "See the License for the specific language governing permissions and", + "limitations under the License.", + "Last change: June 2022" + ], "name": "worldstorageserver", "version": "0.0.1", "description": "ISG ARF World Storage Cpp Server", "main": "index.js", "scripts": { - "generate": "cd EtsiServerGen && npx @openapitools/openapi-generator-cli generate -i ../arf005/API/openapi.yaml -g cpp-pistache-server -o .", + "generate": "cd EtsiServerGen && npx @openapitools/openapi-generator-cli version-manager set 6.6.0 && npx @openapitools/openapi-generator-cli generate -i ../arf005/API/openapi.yaml -g cpp-pistache-server -o .", "dependencies": "cp -a ./nlohmann ./EtsiServerGen/model && sudo add-apt-repository ppa:pistache+team/unstable && sudo apt update && sudo apt install libpistache-dev", "build": "cd EtsiServerGen && mkdir -p build && cd build && cmake .. && sudo make install" - }, - "devDependencies": { - "@openapitools/openapi-generator-cli": "^2.4.23" } } -- GitLab