ESMValGroup / ESMValTool

ESMValTool: A community diagnostic and performance metrics tool for routine evaluation of Earth system models in CMIP
https://www.esmvaltool.org
Apache License 2.0
221 stars 128 forks source link

Use YAML schema for validation #97

Closed bouweandela closed 6 years ago

bouweandela commented 7 years ago

Checking if a yaml file contains the required information should probably be done by creating a yaml schema file.

The checks could then be perfomed using for example this library: https://github.com/23andMe/Yamale

This would be a much more robust and easy way to perform the checks currently defined in e.g. namelistchecks.py

nielsdrost commented 7 years ago

There is unfortunately no standard for yaml schema files. But I agree that even a non-standard schema format would make it easier to verify the namelist files.