dump-swagger.py: include untagged operations (#3326)

pull/977/head
Lukas Lihotzki 3 years ago committed by Travis Ralston
parent 3be746c9d3
commit 4415e36a74

@ -156,10 +156,9 @@ for filename in os.listdir(cs_api_dir):
basePath = api['basePath'] basePath = api['basePath']
for path, methods in api["paths"].items(): for path, methods in api["paths"].items():
for method, spec in methods.items(): for method, spec in methods.items():
if "tags" in spec.keys(): if path not in output["paths"]:
if path not in output["paths"]: output["paths"][path] = {}
output["paths"][path] = {} output["paths"][path][method] = spec
output["paths"][path][method] = spec
edit_links(output, base_url) edit_links(output, base_url)

Loading…
Cancel
Save