mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
🐛 openapi: prepend basePath to all paths (#3642)
This commit is contained in:
parent
6c4aabd053
commit
b6b98410c1
|
|
@ -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] = {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue