Skip to main content

A validator for json, yaml, and jinja2 files

Project description

# config-files-validator 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.

## Example of usage with json files ` validate-json-files example1.json example2.json `

## Example of usage with yaml files ` validate-yaml-files example1.yaml example2.yaml `

## Example of usage with jinja2 files ` validate-jinja2-files example1.j2 example2.j2 `

## Example of usage with jinja2 files and extensions ` validate-jinja2-files --j2-extensions=jinja2.ext.do,jinja2.ext.i18n example1.j2 example2.j2 `

## Example of usage with toml files ` validate-toml-files example1.toml example2.toml `

## Example of xunit xml report 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 `

## Requirements The tool requires version 3.8 or higher of Python.

![ci](https://github.com/feffe/config-files-validator/workflows/CI/badge.svg?branch=master)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

config-files-validator-1.5.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

config_files_validator-1.5.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file config-files-validator-1.5.0.tar.gz.

File metadata

  • Download URL: config-files-validator-1.5.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11

File hashes

Hashes for config-files-validator-1.5.0.tar.gz
Algorithm Hash digest
SHA256 ff8b3832da0e59d651b8d34d24c15f9b84d23c41baf56e71c37c76f2494a5e23
MD5 6de8029732032f2a9f25041246faf32f
BLAKE2b-256 3bc53b91b064e154c1199dd66ef786c992d1849688394a70ede8ef9d51d81426

See more details on using hashes here.

File details

Details for the file config_files_validator-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: config_files_validator-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11

File hashes

Hashes for config_files_validator-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a429f6e39b83292cba8fb3c2323ee4f5d61ba47960f0a86e6150ba2bcae2d21d
MD5 ca56ce6a67aeea5e87f430a1abc4f8fa
BLAKE2b-256 e812361837ceb5e630b395494a92f26f86894602edf2743c2b02270a0d1992c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page