According to
|
Data *ComponentData `json:"data,omitempty" xml:"data,omitempty"` |
Data is a pointer to ComponentData, whereas the schema defines Data as an array of ComponentData:
|
"data": { |
|
"type": "array", |
|
"items": {"$ref": "#/definitions/componentData"}, |
|
"title": "Data", |
|
"description": "This object SHOULD be specified for any component of type `data` and MUST NOT be specified for other component types." |
|
}, |
According to
cyclonedx-go/cyclonedx.go
Line 253 in 98a070d
Data is a pointer to ComponentData, whereas the schema defines Data as an array of ComponentData:
cyclonedx-go/schema/bom-1.6.schema.json
Lines 1075 to 1080 in 98a070d