Expand description
Turning validation results into something a human or another program reads.
A ValidationIssue says what is wrong in machine-readable form. This
module decides where it is (an IssueView) and how it is worded (an
IssueNarrator). Both are traits, so a consumer can render a report in a
world or a language this crate never anticipated.
Modules§
- format
- The
formatmodule: whole-report renderings.
Structs§
- Bo4e
View - Locates issues by BO4E field path.
- Edifact
View - Locates issues by EDIFACT segment path — the world the validator works in.
- Issue
Display - One issue resolved into a chosen view and wording.
- Technical
Narrator - The wording this repo has always used: technical, English, AHB vocabulary.
Traits§
- Issue
Narrator - How an issue is put into words.
- Issue
View - Which world an issue is addressed in.
Functions§
- report_
to_ json - A report rendered for transport: every issue keeps
message,codeandcategoryfields, narrated in the given view, alongside its structuredkind.