Skip to content

Commit

Permalink
utils: display warning messages about REANA spec validation
Browse files Browse the repository at this point in the history
Closes #660
  • Loading branch information
giuseppe-steduto committed Aug 10, 2023
1 parent 4aeaa2c commit eedf5fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion reana_client/validation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ def validate_reana_spec(
f"Verifying REANA specification file... {filepath}",
msg_type="info",
)
validate_reana_yaml(reana_yaml)
validation_warnings = validate_reana_yaml(reana_yaml)
for warning in validation_warnings:
display_message(
warning.message,
msg_type="warning",
indented=True,
)
display_message(
"Valid REANA specification file.",
msg_type="success",
Expand Down

0 comments on commit eedf5fb

Please sign in to comment.