-
Notifications
You must be signed in to change notification settings - Fork 59
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
Validate YAML file using schema before constructing module. #1560
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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.
Looks great!
I first thought that the other issue raised by @tlogan2000 was for yamls like this:
realm: atmos
indicators:
tg:
base: tg_mean
parameters:
frq: MS
where "frq" is misspelt. However, I just tested and this raises an error. So either the original error was fixed elsewhere, or the error was with the keys a level above, and this PR fixes it.
Did you test it with or without this PR ? |
With and without. realm: atmos
indicators:
tg:
base: tg_mean
parameters:
frq: MS fails on both, while realm: atmos
indicators:
tg:
base: tg_mean
parametrs:
freq: MS fails only here. |
Ok, let's merge this then and see if anything else comes up. |
Should we worry about the error in test_encoding ? This occurs in icclim.yml
|
C'est "≥" qui cause problème. |
Pull Request Checklist:
number
) and pull request (:pull:number
) has been addedWhat kind of change does this PR introduce?
Does this PR introduce a breaking change?
Other information:
There was an issue raised by @tlogan2000 about indicators accepting wrong arguments without failing. Could you post an offending example ?