Skip to main content

render_json

Function render_json 

Source
pub fn render_json() -> String
Expand description

Every registry code as JSON, for the site’s page per code (#3876): its summary, severity, category (title and the index anchor of its heading), grammar constructs, and the curated blurb and example where the code has one (else null). Sorted by code. This is the generator behind site/src/generated/diagnostics.json, which the route site/src/pages/reference/diagnostics/[code].astro renders; the docs-consistency test keeps the committed file current.