Skip to content

Draft: yaml: provide command line option to run a schema validation on the given file

Patrick Talbert requested to merge ptalbert/cki-lib:yaml_validate_cli into main

It is nice to be able to validate a yaml file conforms to a schema at the command line.

It takes two arguments: --yaml and --schema; both can be either a file path or URL.

There is no output if the yaml is valid. If the yaml is not valid or either of the input files are empty then an exception is raised.

Signed-off-by: Patrick Talbert ptalbert@redhat.com

Merge request reports