Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 688 Bytes

howto_syntax_check_a_yaml_file.md

File metadata and controls

21 lines (13 loc) · 688 Bytes

How to syntax check a YAML file

Sometime you come across applications or projects using YAML and you start hacking away and things go awry, ysh is your friend.

% cat giving_me_headache.yml | ysh

ysh can be installed from Perl's YAML::Shell distribution available on CPAN.

There are alternatives to ysh like yq.

yq is a wrapper on jq, which is a JSON tool.

There is even a GitHub-Action for it.

References and Resources