dump-swagger.py: include untagged operations (#3326)
This commit is contained in:
parent
3be746c9d3
commit
4415e36a74
1 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue