-
Notifications
You must be signed in to change notification settings - Fork 22
Assess/use uw config validate to validate resolved yaml files #765
Description
Is your feature request related to a problem? Please describe.
Following comment by @ceblanton (#736 (comment))
Currently, the resolved yaml configuration files are validated against a json schema held in the submodule gfdl_msd_schema (https://github.com/NOAA-GFDL/gfdl_msd_schemas). While this works, the fre-cli repo could be made less complicated by removing this submodule. Additionally, while having this standardized structure for fre yamls is good, it also restricts the use of fre-cli tools if a user's yaml (used for a certain workflow definition) does not adhere to our own structure.
Describe the solution you'd like
uw config includes helpful tools and provides more flexibility in uw config validate, where the user has to pass in the yaml file along with the schema file to validate the configuration. Using this (instead of using the gfdl_msd_schema submodule in the fre-cli) could provide more flexibility and improve simplicity in the fre-cli.
We could potentially specify the repo/version/schema file in the yaml configuration that would be used in conjunction with uw config validate to validate the configuration.