Skip to content

Commit 18e0f14

Browse files
committed
ensure parent dir exists for webserver openapi.yaml
1 parent 81c5e9f commit 18e0f14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/specs/web-server/openapi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def main():
9999
# .yaml
100100
oas_path = webserver_resources.get_path("api/v0/openapi.yaml").resolve()
101101
if not oas_path.exists():
102+
oas_path.parent.mkdir(parents=True)
102103
oas_path.write_text("")
103104
print(f"Writing {oas_path}...", end=None)
104105
with oas_path.open("wt") as fh:

0 commit comments

Comments
 (0)