Validate
Validate a given yaml file
Last updated
Was this helpful?
Validate a given yaml file
Last updated
Was this helpful?
Validates the given yaml file, does nothing if its valid, otherwise it will print errors to Stderr and exit with a non 0 exit code. This works like the - but does not take a path expression and does not print the yaml if it is valid.
This will not print anything, and finish with a successful (0) exit code.
This will print the parsing error to stderr:
And return a error exit code (1)
Like other commands, by default the validate command will only run against the first document in the yaml file. Note that when running against other specific document indexes, all previous documents will also be validated.
This will validate both document 0 and document 1 (but not document 2)
This will validate all documents in the yaml file. Note that * is quoted to avoid the CLI from processing the wildcard.