Command line tool to validate and pretty-print YAML syntax of input files.
Windows and macOS binaries are available under Releases
Or install from source:
go get -u github.com/martinlindhe/validyaml
Exit code will be 0 if file is good.
$ validyaml file.yaml
OK: file.yaml
$ curl http://site.com/file.yaml | validyaml
OK: -
$ validyaml -p file.yaml
list:
one: 1
two: 2
Under MIT