From ddc928ead207d6cdc6aa007cf3af761ec136d236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Molinero=20Fern=C3=A1ndez?= Date: Thu, 8 Feb 2024 00:18:44 +0100 Subject: [PATCH] Abort on error --- src/openapi2jsonschema/command.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openapi2jsonschema/command.py b/src/openapi2jsonschema/command.py index 8f17534..9b10a24 100644 --- a/src/openapi2jsonschema/command.py +++ b/src/openapi2jsonschema/command.py @@ -232,6 +232,7 @@ def default(output, schema, prefix, stand_alone, expanded, kubernetes, strict): ) except Exception as e: error("An error occured processing %s: %s" % (kind, e)) + sys.exit(1) with open("%s/all.json" % output, "w", newline="\n") as all_file: info("Generating schema for all types")