Remove extraneous list casting
This commit is contained in:
parent
9e0fafbcd4
commit
ebc7db12fb
9 changed files with 27 additions and 27 deletions
|
@ -94,11 +94,11 @@ for filename in os.listdir(cs_api_dir):
|
|||
api = units.resolve_references(filepath, api)
|
||||
|
||||
basePath = api['basePath']
|
||||
for path, methods in list(api["paths"].items()):
|
||||
for path, methods in api["paths"].items():
|
||||
path = (basePath + path).replace('%CLIENT_MAJOR_VERSION%',
|
||||
major_version)
|
||||
for method, spec in list(methods.items()):
|
||||
if "tags" in list(spec.keys()):
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue