Skip to content

v3.0.0-rc.1

Pre-release
Pre-release

Choose a tag to compare

@kehoecj kehoecj released this 16 Jul 18:28
· 225 commits to feat/3.0 since this release

This is the first release candidate for cfv v3. It is a pre-release — go install ...@latest still resolves to v2.3.0.

Breaking changes from v2

  • Binary renamed from validator to cfv
  • Subcommand-based CLI: cfv check, cfv format (replaces flat flags)
  • Module path: github.com/Boeing/config-file-validator/v3

New: Formatting engine

  • cfv format . - show formatting issues across all config files
  • cfv format --fix . - fix formatting in-place
  • cfv format --diff . — preview changes without modifying files
  • AST-driven formatters for 9 formats: JSON, JSONC, YAML, TOML, XML, HCL, INI, Properties, ENV
  • Sort keys alphabetically (YAML, JSON, JSONC, TOML, Properties, INI)
  • Per-format configuration via .cfv.toml

New: Fix engine

  • cfv check --fix . — auto-fix common validation issues (trailing commas, type coercion)

Formatting implementation details

  • YAML: full AST-driven printer using yaml.v3 Node tree — matches prettier/yamlfmt output
  • TOML: CST-based pipeline preserving comments
  • XML: CST-based formatter handling mixed content, self-closing tags, comments
  • Properties/INI: CST-based with comment preservation
  • All formatters fuzz-tested with semantic equivalence assertions

Install

go install github.com/Boeing/config-file-validator/v3/cmd/cfv@v3.0.0-rc.1

Feedback

Please report issues at https://github.com/Boeing/config-file-validator/issues