Add stub repository structure
This commit is contained in:
17
scripts/process_openapiv2.py
Normal file
17
scripts/process_openapiv2.py
Normal 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()
|
||||
Reference in New Issue
Block a user