Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Struct fix #18

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions component.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 5 additions & 1 deletion repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down