Repository navigation
🚀 New Release: Config File Validator 3.0 #699
kehoecj
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
After the 3.0 release, the config file validator is now a complete config file toolchain. Syntax validation, schema enforcement, and formatting validation all in one binary.
Formatting
cfvnow checks and fixes formatting for 9 config formats — JSON, JSONC, YAML, TOML, HCL, XML, INI, Properties, and ENV.Validate syntax, enforce schemas, and check formatting in one pass:
Fix everything — formatting, trailing commas, and schema type coercion:
Preview formatting changes as a unified diff:
Drop-in replacement for popular formatters
Config file validator should be a drop-in replacement for
prettier(JSON/JSONC/YAML),taplo(TOML), andyamlmt. We tested thecfvformatting against an extensive parity suite and hit 98.6% parity byte-for-byte with the above tools. We also support the configs for these tools, automatically, no setup required.cfvwill auto-detect.prettierrc,taplo.toml, .yamlfmt, and.editorconfig. If you like it, you can migrate tocfv.tomlWhat else is new
cfv check,cfv format,cfv version,cfv help.cfv check --watchkeeps the validator watching your directories for changes..cuefiles are now supported--merge-sarifcombines external SARIF reports into cfv's output.Breaking changes
validatortocfv. Honestly, this should have been done a while ago.validatoris too ambiguous.$schemadeclaration from inside documents. Looking back, this implementation tried to be too clever and was forcing files to have invalid schemas to check a schema.... We decided to keep it simple: Just use--schema-map,--schemastore, or.cfv.tomlto map files to schemas.Install / Upgrade
https://github.com/Boeing/config-file-validator#install
For complete details, please see the docs
All reactions