Remove raw JSON observation block from report

This commit is contained in:
nemunaire 2026-04-29 17:29:37 +07:00
commit b58dc9b065

View file

@ -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>`