Remove raw JSON observation block from report
This commit is contained in:
parent
5a632a3b30
commit
b58dc9b065
1 changed files with 0 additions and 12 deletions
|
|
@ -71,7 +71,6 @@ type reportView struct {
|
|||
PerServer []serverView
|
||||
OtherFindings []otherFinding
|
||||
GlobalErrors []string
|
||||
RawJSON string
|
||||
}
|
||||
|
||||
type bannerView struct {
|
||||
|
|
@ -157,12 +156,6 @@ func buildReportView(d *DNSSECData, states []sdk.CheckState) *reportView {
|
|||
}
|
||||
v.GlobalErrors = d.Errors
|
||||
|
||||
if raw, err := json.MarshalIndent(d, "", " "); err == nil {
|
||||
v.RawJSON = string(raw)
|
||||
} else {
|
||||
v.GlobalErrors = append(v.GlobalErrors, fmt.Sprintf("render raw JSON: %v", err))
|
||||
}
|
||||
|
||||
v.Banner = buildBanner(d)
|
||||
v.Enumerability = buildEnum(d)
|
||||
v.Keys = buildKeys(d)
|
||||
|
|
@ -746,10 +739,5 @@ const reportTemplate = `<!DOCTYPE html>
|
|||
</table>
|
||||
{{end}}
|
||||
|
||||
{{if .RawJSON}}
|
||||
<h2>Raw observation</h2>
|
||||
<details><summary>Show JSON</summary><pre>{{.RawJSON}}</pre></details>
|
||||
{{end}}
|
||||
|
||||
</body>
|
||||
</html>`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue