From 71264b6d6f1effdd415c6b0053facd73d3a06d0d Mon Sep 17 00:00:00 2001 From: Philipp Dallig Date: Wed, 16 Oct 2024 12:11:43 +0200 Subject: [PATCH] Add support for the ExternalReferences field in Projects Signed-off-by: Philipp Dallig --- project.go | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/project.go b/project.go index 491db82..44c5fee 100644 --- a/project.go +++ b/project.go @@ -10,24 +10,25 @@ import ( ) type Project struct { - UUID uuid.UUID `json:"uuid,omitempty"` - Author string `json:"author,omitempty"` - Publisher string `json:"publisher,omitempty"` - Group string `json:"group,omitempty"` - Name string `json:"name,omitempty"` - Description string `json:"description,omitempty"` - Version string `json:"version,omitempty"` - Classifier string `json:"classifier,omitempty"` - CPE string `json:"cpe,omitempty"` - PURL string `json:"purl,omitempty"` - SWIDTagID string `json:"swidTagId,omitempty"` - DirectDependencies string `json:"directDependencies,omitempty"` - Properties []ProjectProperty `json:"properties,omitempty"` - Tags []Tag `json:"tags,omitempty"` - Active bool `json:"active"` - Metrics ProjectMetrics `json:"metrics"` - ParentRef *ParentRef `json:"parent,omitempty"` - LastBOMImport int `json:"lastBomImport"` + UUID uuid.UUID `json:"uuid,omitempty"` + Author string `json:"author,omitempty"` + Publisher string `json:"publisher,omitempty"` + Group string `json:"group,omitempty"` + Name string `json:"name,omitempty"` + Description string `json:"description,omitempty"` + Version string `json:"version,omitempty"` + Classifier string `json:"classifier,omitempty"` + CPE string `json:"cpe,omitempty"` + PURL string `json:"purl,omitempty"` + SWIDTagID string `json:"swidTagId,omitempty"` + DirectDependencies string `json:"directDependencies,omitempty"` + Properties []ProjectProperty `json:"properties,omitempty"` + Tags []Tag `json:"tags,omitempty"` + Active bool `json:"active"` + Metrics ProjectMetrics `json:"metrics"` + ParentRef *ParentRef `json:"parent,omitempty"` + LastBOMImport int `json:"lastBomImport"` + ExternalReferences []ExternalReference `json:"externalReferences,omitempty"` } type ParentRef struct {