Add stub repository structure

This commit is contained in:
2025-06-03 22:32:01 +02:00
commit 3ccb0fda2c
6 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import shutil
import os
def main():
src = 'deployments/docker/openapiv2.json'
dst = 'deployments/docker/openapi.yaml'
print("Simulating OpenAPI v2 to v3 conversion...")
if os.path.exists(src):
shutil.copyfile(src, dst)
else:
with open(dst, 'w') as f:
f.write('# dummy OpenAPI v3 content\nopenapi: 3.0.0\ninfo:\n title: Example\n version: 1.0.0\n')
if __name__ == '__main__':
main()