A command line tool to validate configuration language files and template files. So far json, yaml, jinja2, and toml are supported. The tool validates the files by trying load them one by one. Result can be converted to xunit xml report.
validate-json-files example1.json example2.json
validate-yaml-files example1.yaml example2.yaml
validate-jinja2-files example1.j2 example2.j2
validate-jinja2-files --j2-extensions=jinja2.ext.do,jinja2.ext.i18n example1.j2 example2.j2
validate-toml-files example1.toml example2.toml
This will generate an xunit xml report file named testreport.xml
validate-yaml-files example1.yaml example2.yaml --xunit
This will generate an xunit xml report file named myxunit.xml
validate-yaml-files example1.yaml example2.yaml --xunit --xunit-output-file=myxunit.xml
The tool requires version 3.8 or higher of Python.