Expand description
jss-lint diff engine + renderers — mirrors texlint/diff.py
(spec 016). Pure comparison over the spec-001 --output json shape;
violations are kept as generic serde_json::Value objects (not
this crate’s typed Violation) since a diff input can be any
spec-001-shaped JSON file, including ones this binary didn’t
produce, and every original field must round-trip into
render_json’s output untouched.
Structs§
- Diff
Report - Mirrors
diff.py::DiffReport. - Schema
Mismatch - Mirrors
diff.py::SchemaMismatch.
Functions§
- compare
- Compares two spec-001 violation lists. Mirrors
diff.py::compare(spec 016 contract C-2).rule_renamesisn’t exposed by thejss-lint diffCLI surface today (Python’sdiff_cmddoesn’t wire a--rule-renamesflag either) — kept as a parameter for API parity with the Python function. - render_
json - Deterministic JSON output. Mirrors
diff.py::render_json, reusingjson_output::write_valuefor the samejson.dumps-compatible serialization. - render_
markdown - GitHub-flavoured CommonMark. Mirrors
diff.py::render_markdown. - render_
terminal - ANSI-free plain-text rendering. Mirrors
diff.py::render_terminal. - validate_
payload - Validates a parsed JSON payload against the spec-001 shape and
returns its
violationsarray.sourceis a short human-readable identifier (typically a file path) included in the error message. Mirrorsdiff.py::validate_payload.