🐛 openapi: prepend basePath to all paths (#3642)

This commit is contained in:
Alexandre Franke 2022-01-19 15:39:41 +01:00 committed by GitHub
parent 6c4aabd053
commit b6b98410c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,6 +155,7 @@ for filename in os.listdir(cs_api_dir):
basePath = api['basePath']
for path, methods in api["paths"].items():
path = basePath + path
for method, spec in methods.items():
if path not in output["paths"]:
output["paths"][path] = {}