From 9058ea138b9dfe665293cd4dbc9c666e64047b7d Mon Sep 17 00:00:00 2001 From: Marius Goetze Date: Mon, 8 Sep 2025 11:19:24 +0200 Subject: [PATCH] fix doc comment: remove untrue claim of disallowing unknown fields looks like a bug otherwise, but is the intended behavior: https://github.com/gocsaf/csaf/pull/655/commits/7935818600ee70cbcb7784a67788a4f3bacaba01 --- internal/misc/json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/misc/json.go b/internal/misc/json.go index 4ecc6a5..d9e87c3 100644 --- a/internal/misc/json.go +++ b/internal/misc/json.go @@ -15,7 +15,7 @@ import ( ) // StrictJSONParse creates a JSON decoder that decodes an interface -// while not allowing unknown fields nor trailing data +// while not allowing trailing data func StrictJSONParse(jsonData io.Reader, target any) error { decoder := json.NewDecoder(jsonData)