Skip to main content

Module diagnostic

Module diagnostic 

Source
Expand description

Structured diagnostics for the synthetic data generator.

Config loading, compilation, heuristics, and verification all need to report problems without stopping at the first one: a config with three unknown tables should say so three times, not once. DiagnosticBag is the single home for collecting those problems, and Diagnostic is the stable shape shared by human (Display) and machine (JSON) reports.

Codes are plain strings rather than an enum so that statically linked extensions can mint their own namespaced codes (e.g. EXT-FOO-BAR) without changing this crate.

Modules§

codes
Canonical metadata for every built-in GEN-* diagnostic.

Structs§

Diagnostic
A single diagnostic: a stable code, severity, YAML path, message, and optional help/related locations.
DiagnosticBag
Collects independent diagnostics from a single compilation pass.
DiagnosticDefinition
Stable metadata shared by every occurrence of a built-in diagnostic code.
SourceLocation
A named location related to a diagnostic, e.g. the other place a column is produced from.

Enums§

DiagnosticCategory
Area of the generate pipeline that owns a built-in diagnostic definition.
Severity
How serious a Diagnostic is.
TypicalSeverity
Usual severity of a built-in diagnostic code.

Constants§

DIAGNOSTICS_DOCUMENTATION_URL
Canonical website page for built-in synthetic-generation diagnostics.

Type Aliases§

DiagnosticCode
Stable diagnostic code, e.g. GEN-MISSING-TABLE.