From e3b655ee5e6f55758fb8ca393a346d3abdf2eea7 Mon Sep 17 00:00:00 2001 From: James Kim Date: Thu, 26 Sep 2024 14:02:58 -0400 Subject: [PATCH] change Data's type to *[]ComponentData Signed-off-by: James Kim --- cyclonedx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyclonedx.go b/cyclonedx.go index f7f9803..cbd8507 100644 --- a/cyclonedx.go +++ b/cyclonedx.go @@ -250,7 +250,7 @@ type Component struct { Evidence *Evidence `json:"evidence,omitempty" xml:"evidence,omitempty"` ReleaseNotes *ReleaseNotes `json:"releaseNotes,omitempty" xml:"releaseNotes,omitempty"` ModelCard *MLModelCard `json:"modelCard,omitempty" xml:"modelCard,omitempty"` - Data *ComponentData `json:"data,omitempty" xml:"data,omitempty"` + Data *[]ComponentData `json:"data,omitempty" xml:"data,omitempty"` CryptoProperties *CryptoProperties `json:"cryptoProperties,omitempty" xml:"cryptoProperties,omitempty"` }