Skip to main content
Config File Validator

Config File Validator

A toolchain for configuration files

Config File Validator validating JSON, YAML, TOML, and XML files

18 Formats, One Command

cfv check . validates syntax across all 18 formats in a single pass. cfv check --fix fixes what it can.

Enforce Schemas

Validates against JSON Schema and XSD. Automatic SchemaStore lookup finds the right schema by filename.

Format and Fix

Checks and fixes formatting for JSON, YAML, TOML, XML, HCL, INI, Properties, and ENV. Reads your existing .prettierrc, taplo.toml, and .yamlfmt configs.

Single Binary, No Runtime

Static Go executable. No Node, no Python, no package manager. Runs on macOS, Linux, and Windows.

Built for CI

JUnit, SARIF, and JSON reporters. GitHub Actions annotations on PRs. Exits non-zero on any failure.

Fits Your Workflow

Respects .gitignore. Configurable via .cfv.toml. Available as a pre-commit hook, GitHub Action, or Go library.