Skip to content

Commit

Permalink
feat: add external reference category "OTHER" (#229)
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Combüchen <max.combuchen@snyk.io>
  • Loading branch information
mcombuechen committed Dec 20, 2023
1 parent 254541c commit be01c4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spdx/model.go
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions spdx/v2/common/external.go
Expand Up @@ -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"
Expand Down

0 comments on commit be01c4e

Please sign in to comment.