23andMe / Yamale

A schema and validator for YAML.
MIT License
666 stars 88 forks source link

How to make success silent ? #223

Open vasilvestre opened 1 year ago

vasilvestre commented 1 year ago

When you work with a lot of files in CI and want to report every errors, it's quite difficult to do.

mildebrandt commented 1 year ago

Unfortunately, it looks like Yamale writes to stdout instead of stderr when validation fails. You should open a separate issue for that.

To get around that limitation, you can do the following:

output=$(yamale -s my.schema my.yaml) || echo "$output"