13
0
Fork 0
mirror of https://github.com/yannh/kubeconform.git synced 2026-07-04 02:19:31 +00:00

openapi2jsonschema.py now correctly fails if no FILE is passed (#244)

* openapi2jsonschema.py now correctly fails if no FILE is passed
* Update acceptance tests
This commit is contained in:
Yann Hamon 2023-11-18 18:08:18 +01:00 committed by GitHub
parent b7d7b4d0dc
commit 6ae8c45bc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 49 deletions

View file

@ -122,8 +122,8 @@ def construct_value(load, node):
if __name__ == "__main__":
if len(sys.argv) == 0:
print("missing file")
if len(sys.argv) < 2:
print('Missing FILE parameter.\nUsage: %s [FILE]' % sys.argv[0])
exit(1)
for crdFile in sys.argv[1:]: