til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

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