Skip to content
On this page

Validation

Taplo supports validation of TOML files, by default it will only look for syntax errors and some semantic errors such as duplicate keys.

sh
taplo check foo.toml

Schema Validation

Taplo supports validation via JSON Schemas (Draft 4).

Using a Specific Schema

sh
taplo check --schema https://example.com/foo-schema.json foo.toml

Using a Schema Catalog

Taplo supports schema catalogs such as the JSON Schema Store for retrieving schemas and matching them to files via file names.

You can enable this by either specifying a catalog via the --schema-catalog flag, or enabling the use of the default catalogs via --default-schema-catalogs.