#validation #toon #cli-parser #parser #token-analysis

app toon-validate

Command-line TOON validator for structure validation, token analysis, and file profiling

1 unstable release

0.1.0 Nov 28, 2025

#19 in #toon

Unlicense

25KB
454 lines

toon-validate

Command-line TOON Validator for structure validation, token analysis, and file profiling.

The tval binary provides fast validation and analysis of TOON and JSON files.

Requirements

  • Rust toolchain (stable)

Build

cargo build --release

Binary: target/release/tval

Commands

tval analyze <file>     # analyze single file
tval profile <dir>      # analyze directory  
tval check <file>       # validate structure

Flags

  • --in=toon|json - input format (default: auto)
  • --json - JSON output
  • --ext=<list> - file extensions for profile (default: .toon,.json)

Exit codes

  • 0: success
  • 1: IO/parse error
  • 2: validation error

Tests

cargo test
./test.sh

Dependencies

~4–7.5MB
~116K SLoC