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

pull/3778/head
Lukas Lihotzki 2 years ago committed by GitHub
parent acf44d7d28
commit a07780dbab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -98,10 +98,9 @@ for filename in os.listdir(cs_api_dir):
path = (basePath + path).replace('%CLIENT_MAJOR_VERSION%',
major_version)
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
print("Generating %s" % output_file)

Loading…
Cancel
Save