jsonschema-explain
Render JSON Schema as human-readable terminal documentation
Features
- Man-page-style terminal output from typed
jsonschema_schema::SchemaValueschemas - ANSI colors with bold headers, dimmed metadata, and highlighted types
- Syntax-highlighted code blocks in schema descriptions (via
markdown-to-ansi) - Renders properties, required fields, enums, defaults,
oneOf/anyOf/allOfvariants - Caller-provided width for terminal-aware layout
Usage
use ;
use SchemaValue;
let schema: SchemaValue = from_str.unwrap;
let opts = ExplainOptions ;
let output = explain;
println!;
Part of the Lintel project.
License
Apache-2.0