Skip to content
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

How to make success silent ? #223

Open
vasilvestre opened this issue Jun 28, 2023 · 1 comment
Open

How to make success silent ? #223

vasilvestre opened this issue Jun 28, 2023 · 1 comment

Comments

@vasilvestre
Copy link

vasilvestre commented Jun 28, 2023

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

@mildebrandt
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants