From a0c08ed94d80231b6df05239e2f9407ecea3edce Mon Sep 17 00:00:00 2001 From: l0cs <36977240+l0cs@users.noreply.github.com> Date: Thu, 21 Apr 2022 14:57:05 -0500 Subject: [PATCH 1/2] added missing fields --- repository.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/repository.go b/repository.go index 79fa766..98c2297 100644 --- a/repository.go +++ b/repository.go @@ -6,7 +6,11 @@ import ( ) type RepositoryMetaComponent struct { - LatestVersion string `json:"latestVersion"` + LastCheck int64 `json:"lastCheck"` + LatestVersion string `json:"latestVersion"` + Name string `json:"name"` + Published int64 `json:"published"` + RepositoryType string `json:"repositoryType"` } type RepositoryService struct { From 67e8d3ba069aaa83d874fd62e51d68d40391a101 Mon Sep 17 00:00:00 2001 From: l0cs <36977240+l0cs@users.noreply.github.com> Date: Thu, 21 Apr 2022 14:57:50 -0500 Subject: [PATCH 2/2] added Repository object in Component struct --- component.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/component.go b/component.go index 1e539dc..2a8d837 100644 --- a/component.go +++ b/component.go @@ -36,13 +36,14 @@ type Component struct { PURL string `json:"purl"` SWIDTagID string `json:"swidTagId"` - Internal bool `json:"isInternal"` - Description string `json:"description"` - Copyright string `json:"copyright"` - License string `json:"license"` - ResolvedLicense *License `json:"resolvedLicense"` - DirectDependencies string `json:"directDependencies"` - Notes string `json:"notes"` + Internal bool `json:"isInternal"` + Description string `json:"description"` + Copyright string `json:"copyright"` + License string `json:"license"` + RepositoryMeta *RepositoryMetaComponent `json:"repositoryMeta"` + ResolvedLicense *License `json:"resolvedLicense"` + DirectDependencies string `json:"directDependencies"` + Notes string `json:"notes"` } type ComponentsPage struct {