Skip to main content

Module diagnostics

Module diagnostics 

Source

Enums§

LintelDiagnostic
A single diagnostic produced during validation, formatting, or parsing.

Constants§

DEFAULT_LABEL
Default label text used for span annotations when no specific instance path is available. Checked by reporters to decide whether to show the path suffix.

Functions§

find_instance_path_span
Find the byte span (offset, length) of a JSON pointer path segment in the source text, suitable for converting directly into a SourceSpan.
format_label
Build a label string combining the instance path and the schema path.
offset_to_line_col
Convert a byte offset into 1-based (line, column).