From 4415e36a74fff052a4d4dccdeb27aae8e805d782 Mon Sep 17 00:00:00 2001 From: Lukas Lihotzki Date: Tue, 4 Jan 2022 19:31:09 +0100 Subject: [PATCH] dump-swagger.py: include untagged operations (#3326) --- scripts/dump-swagger.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/dump-swagger.py b/scripts/dump-swagger.py index c799e100..e221f976 100755 --- a/scripts/dump-swagger.py +++ b/scripts/dump-swagger.py @@ -156,10 +156,9 @@ for filename in os.listdir(cs_api_dir): basePath = api['basePath'] for path, methods in api["paths"].items(): for method, spec in methods.items(): - if "tags" in spec.keys(): - if path not in output["paths"]: - output["paths"][path] = {} - output["paths"][path][method] = spec + if path not in output["paths"]: + output["paths"][path] = {} + output["paths"][path][method] = spec edit_links(output, base_url)