Expand description
Versioned JSON output (FR-007).
Schema mirrors specs/062-cli-check-mode/plan.md §4 exactly. schema_version lets
downstream tooling detect a future breaking change to this shape (constitution
principle 8) — bump it, and document the bump in CHANGELOG.md as Breaking, whenever
a field is renamed or removed (adding a new optional field is not itself a bump).
Structs§
- Finding
Document - One finding’s JSON shape.
- Position
Document - LSP
Position’s JSON shape ({"line": ..., "character": ...}), both zero-based. - Range
Document - LSP
Range’s JSON shape ({"start": {...}, "end": {...}}). - Report
Document - Top-level JSON document shape.
Constants§
- SCHEMA_
VERSION - The current
schema_versionthis module emits andReportDocumentcan deserialize.
Functions§
- render
- Renders
reportas a pretty-printed JSON string. - to_
document - Builds the versioned
ReportDocumentforreport.