Skip to content

Commit f031bdf

Browse files
committed
change Data's type to *[]ComponentData
1 parent 396a52c commit f031bdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cyclonedx.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ type Component struct {
250250
Evidence *Evidence `json:"evidence,omitempty" xml:"evidence,omitempty"`
251251
ReleaseNotes *ReleaseNotes `json:"releaseNotes,omitempty" xml:"releaseNotes,omitempty"`
252252
ModelCard *MLModelCard `json:"modelCard,omitempty" xml:"modelCard,omitempty"`
253-
Data *ComponentData `json:"data,omitempty" xml:"data,omitempty"`
253+
Data *[]ComponentData `json:"data,omitempty" xml:"data,omitempty"`
254254
CryptoProperties *CryptoProperties `json:"cryptoProperties,omitempty" xml:"cryptoProperties,omitempty"`
255255
}
256256

0 commit comments

Comments
 (0)