YAML Check
Use yq to validate and inspect YAML files.
Usage
To validate a single YAML file:
yq eval '.' file.yaml > /dev/null
To validate all YAML files in a directory:
./scripts/validation.sh /path/to/dir
To pretty-print a YAML file:
yq eval '.' file.yaml
Common Options
-e EXPRESSION— evaluate a yq expression-i— edit file in-place-o json— output as JSON-P— pretty-print output