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.
- Diagnostic
Bag - Collects independent diagnostics from a single compilation pass.
- Diagnostic
Definition - Stable metadata shared by every occurrence of a built-in diagnostic code.
- Source
Location - A named location related to a diagnostic, e.g. the other place a column is produced from.
Enums§
- Diagnostic
Category - Area of the generate pipeline that owns a built-in diagnostic definition.
- Severity
- How serious a
Diagnosticis. - Typical
Severity - Usual severity of a built-in diagnostic code.
Constants§
- DIAGNOSTICS_
DOCUMENTATION_ URL - Canonical website page for built-in synthetic-generation diagnostics.
Type Aliases§
- Diagnostic
Code - Stable diagnostic code, e.g.
GEN-MISSING-TABLE.