-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
validation: improve warning message for unexpected properties #693
validation: improve warning message for unexpected properties #693
Conversation
a6a4974
to
5f52cae
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #693 +/- ##
==========================================
- Coverage 58.62% 58.57% -0.05%
==========================================
Files 24 24
Lines 2388 2390 +2
==========================================
Hits 1400 1400
- Misses 988 990 +2
|
reana_client/validation/utils.py
Outdated
if warning_key == "additional_properties": | ||
# warning_values is a list of unexpected properties | ||
messages = [ | ||
f"'{value['property']}' (at {value['path']})" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The path might be empty, so sometimes this is shown:
Unexpected properties found in REANA specification file: 'environment' (at )
setup.py
Outdated
@@ -45,7 +45,7 @@ | |||
"click>=7", | |||
"pathspec==0.9.0", | |||
"jsonpointer>=2.0", | |||
"reana-commons[yadage,snakemake,cwl]>=0.9.4a1,<0.10.0", | |||
"reana-commons[yadage,snakemake,cwl]>=0.9.4a4,<0.10.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"reana-commons[yadage,snakemake,cwl]>=0.9.4a4,<0.10.0", | |
"reana-commons[yadage,snakemake,cwl]>=0.9.4a3,<0.10.0", |
After this CI should pass!
Change the warning message generated when unexpected properties are found in the REANA specification during the validation phase to include the path to the invalidating properties. Closes reanahub#679.
5f52cae
to
208a8e6
Compare
Change the warning message generated when unexpected properties are
found in the REANA specification during the validation phase to include
the path to the invalidating properties.
Closes #679.