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.