Skip to content

Commit

Permalink
Abort on error
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorm committed Feb 7, 2024
1 parent 17d6bc8 commit ddc928e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/openapi2jsonschema/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ddc928e

Please sign in to comment.