Skip to main content

report_to_json

Function report_to_json 

Source
pub fn report_to_json(
    report: &ValidationReport,
    view: &dyn IssueView,
    narrator: &dyn IssueNarrator,
) -> Value
Expand description

A report rendered for transport: every issue keeps message, code and category fields, narrated in the given view, alongside its structured kind.

The HTTP API and mako’s proto are display boundaries — the type has no message, code or category, but a JSON response does.