Skip to content

Commit 5c37a19

Browse files
committed
bugfix in webserver
1 parent 9577c83 commit 5c37a19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/specs/web-server/openapi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ def main():
9898

9999
# .yaml
100100
oas_path = webserver_resources.get_path("api/v0/openapi.yaml").resolve()
101+
if not oas_path.exists():
102+
oas_path.write_text("")
101103
print(f"Writing {oas_path}...", end=None)
102104
with oas_path.open("wt") as fh:
103105
yaml.safe_dump(openapi, stream=fh, sort_keys=False)

0 commit comments

Comments
 (0)