gts-validator
GTS identifier validator for documentation and configuration files (.md, .json, .yaml).
Overview
gts-validator provides both:
- a CLI binary (
gts-validator) for CI and local validation, and - a library API for embedding validation into Rust applications.
The crate provides a clean separation between:
- Core validation engine (input-agnostic): normalize → validate → report
- Input strategies (starting with filesystem scanning)
CLI usage
Install:
Examples:
# Basic scan
# Vendor enforcement
# Exclusions (repeatable)
# Machine-readable output
# Strict markdown discovery mode
If no paths are passed, the CLI scans existing default roots:
docs, modules, libs, examples.
Library usage
use PathBuf;
use ;
let mut fs_config = default;
fs_config.paths = vec!;
fs_config.exclude = vec!;
let mut validation_config = default;
validation_config.vendor_policy = MustMatch;
let report = validate_fs.unwrap;
println!;
println!;
println!;
Output Formatting
The crate includes output formatters for rendering validation reports:
use output;
// JSON output
let mut stdout = stdout;
write_json.unwrap;
// Human-readable output
write_human.unwrap;
License
Apache-2.0