1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Add LoadAdvisory tests
Some checks failed
Go / build (push) Has been cancelled
Go / run_modver (push) Has been cancelled

This commit is contained in:
koplas 2025-07-04 15:29:03 +02:00
parent e7c08d05cd
commit c81f55a752
No known key found for this signature in database
5 changed files with 563 additions and 1 deletions

View file

@ -16,7 +16,7 @@ import (
// StrictJSONParse creates a JSON decoder that decodes an interface
// while not allowing unknown fields nor trailing data
func StrictJSONParse(jsonData io.Reader, target interface{}) error {
func StrictJSONParse(jsonData io.Reader, target any) error {
decoder := json.NewDecoder(jsonData)
// Don't allow unknown fields
decoder.DisallowUnknownFields()