From ec0dcea2a321ae55daa56a564ca0c7bc8b9de458 Mon Sep 17 00:00:00 2001 From: Simran Brucherseifer Date: Tue, 19 Nov 2019 16:32:04 +0100 Subject: [PATCH] Fix swagger version --- utils/generateSwagger.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/utils/generateSwagger.py b/utils/generateSwagger.py index 1a8e791b9e..2f524eda32 100755 --- a/utils/generateSwagger.py +++ b/utils/generateSwagger.py @@ -57,16 +57,11 @@ MS = re.M | re.S ### @brief swagger ################################################################################ -# read ArangoDB version -f = io.open(scriptDir + "VERSION", encoding="utf-8") -version = f.read().strip() -f.close() - swagger = { "swagger": "2.0", "info": { "description": "ArangoDB REST API Interface", - "version": version, + "version": "1.0", # placeholder "title": "ArangoDB", "license": { "name": "Apache License, Version 2.0" @@ -1439,6 +1434,12 @@ if len(sys.argv) > 5: fileFilter = sys.argv[5] print("Filtering for: [" + fileFilter + "]", file=sys.stderr) +# read ArangoDB version and use it as API version +f = io.open(scriptDir + "VERSION", encoding="utf-8") +version = f.read().strip() +f.close() +swagger['info']['version'] = version + paths = {} topdir = sys.argv[4]