lintel-check
Core validation engine for Lintel. Validates JSON, YAML, TOML, JSON5, and JSONC files against JSON Schema.
Features
- Multi-format parsing — JSON, YAML, TOML, JSON5, JSONC with format-specific
$schemaextraction (inline properties, YAML modelines, TOML header comments) - SchemaStore catalog — auto-matches files to schemas using SchemaStore
fileMatchpatterns - Schema caching — disk-backed cache for remote schemas with configurable cache directory
- Project configuration —
lintel.tomlwith exclude patterns, schema URI rewrites,//-relative paths, and per-file overrides - Rich diagnostics — miette-powered error reporting with source spans
Usage
use ;
use UreqClient;
let args = ValidateArgs ;
let result = run.await?;
for error in result.errors
Configuration (lintel.toml)
= true
= ["vendor/**", "node_modules/**"]
[]
= "//schemas/"
[[]]
= ["**/vector.json"]
= ["**/vector.json"]
= false
root— stop walking up the directory tree for parent configsexclude— glob patterns to skip during validationrewrite— URI prefix replacement rules (longest prefix wins)//paths — resolve relative to the directory containinglintel.toml[[override]]— per-file/per-schema settings (e.g. disable format validation)