Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

dont validate openapi spec if bundling failed

Christophe Bliard133ddb464135
diff --git a/script/api/validate_spec b/script/api/validate_spec
index 71b58ed866e..bf6f89d4af1 100755
--- a/script/api/validate_spec
+++ b/script/api/validate_spec
@@ -5,6 +5,12 @@ require 'tempfile'
openapi_yaml_spec_path = Pathname(__dir__).join('../../tmp/oas-generated.yml')
full_spec = `#{Pathname(__dir__).join('spec')} --format yaml`
+status = $?.exitstatus
+if status != 0
+ warn "failed to bundle the openapi spec yaml file"
+ exit status
+end
+
status = 1
begin