With the need to use YAML in Ubuntu Server 18 (netplan), is there a built-in way to validate a .yaml file BEFORE it blows up inside whatever app is trying to use it?
I've found various online validators and other ways using Python, Ruby and travis but I'm looking for a way to validate without the need to install additional software.
I thought about making a wrapper to feed a file to an online service but if the service goes away or do not have Internet access, it would be wasted effort. (EDIT: This might be the only way if nothing built-in works)
Anyone have a solution?
Thanks,
LHammonds
EDIT: Stuff I've found so far related to this
Bash script to read YAML using sed/awk (by pkuczynski)
Bash script expanding pkuczynski script (by jasperes)
Verify YAML via Shell (requires Python)
yamllint.com - Online web-based validator
CodeBeautify.org - Online web-based validator
Bookmarks