Class IntegrityReportJson
Renders an IntegrityReport as JSON for CI gates, scripts and the Workbench.
public static class IntegrityReportJson
- Inheritance
-
IntegrityReportJson
- Inherited Members
Remarks
The schema is versioned (ReportVersion) and finding codes are stable, because a finding code is an API — renaming one breaks somebody's alert. Written by hand rather than through a serializer so the shape is visible in one place and cannot drift when a property is added to a model type.
Methods
Render(IntegrityReport, bool)
Renders the report as JSON.
public static string Render(IntegrityReport report, bool indent = true)
Parameters
reportIntegrityReportThe report to render.
indentboolWhether to pretty-print.
Returns
Exceptions
- ArgumentNullException
reportisnull.