From 9009bc0c303fa347cdb6783d5596d2bb70fa260a Mon Sep 17 00:00:00 2001 From: mbohlool Date: Wed, 23 Nov 2016 10:57:01 -0800 Subject: [PATCH] Update OpenAPI spec version --- scripts/preprocess_spec.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/preprocess_spec.py b/scripts/preprocess_spec.py index 47b51ee70..8dc6226ca 100644 --- a/scripts/preprocess_spec.py +++ b/scripts/preprocess_spec.py @@ -111,6 +111,10 @@ def process_swagger(infile, outfile): except PreprocessingException as e: print(e.message) + # TODO: Kubernetes does not set a version for OpenAPI spec yet, + # remove this when that is fixed. + spec['info']['version'] = "v1.5.0-beta.1" + with open(outfile, 'w') as out: json.dump(spec, out, sort_keys=False, indent=2, separators=(',', ': '), ensure_ascii=True)