Table of Contents

Class IntegrityReportJson

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

report IntegrityReport

The report to render.

indent bool

Whether to pretty-print.

Returns

string

Exceptions

ArgumentNullException

report is null.