From be01c4ea6403e6e581a0da0788baf395a4feb081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Comb=C3=BCchen?= Date: Wed, 20 Dec 2023 16:07:27 +0100 Subject: [PATCH] feat: add external reference category "OTHER" (#229) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maximilian Combüchen --- spdx/model.go | 3 +++ spdx/v2/common/external.go | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/spdx/model.go b/spdx/model.go index e91856b..7d1105e 100644 --- a/spdx/model.go +++ b/spdx/model.go @@ -85,6 +85,9 @@ const ( TypePersistentIdSwh = common.TypePersistentIdSwh TypePersistentIdGitoid = common.TypePersistentIdGitoid + // F.5 Other + CategoryOther = common.CategoryOther + // 11.1 Relationship field types RelationshipDescribes = common.TypeRelationshipDescribe RelationshipDescribedBy = common.TypeRelationshipDescribeBy diff --git a/spdx/v2/common/external.go b/spdx/v2/common/external.go index 8344ac6..2715815 100644 --- a/spdx/v2/common/external.go +++ b/spdx/v2/common/external.go @@ -21,11 +21,15 @@ const ( TypePackageManagerNuGet string = "nuget" TypePackageManagerBower string = "bower" TypePackageManagerPURL string = "purl" + // F.4 Persistent-Id types CategoryPersistentId string = "PERSISTENT-ID" TypePersistentIdSwh string = "swh" TypePersistentIdGitoid string = "gitoid" + // F.5 Other + CategoryOther string = "OTHER" + // 11.1 Relationship field types TypeRelationshipDescribe string = "DESCRIBES" TypeRelationshipDescribeBy string = "DESCRIBED_BY"