Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added referenceType enum #162

Merged
merged 2 commits into from
Sep 28, 2022
Merged

added referenceType enum #162

merged 2 commits into from
Sep 28, 2022

Conversation

pxp928
Copy link
Contributor

@pxp928 pxp928 commented Sep 28, 2022

Signed-off-by: pxp928 parth.psu@gmail.com

Added constants for referenceType in PackageExternalReference

Signed-off-by: pxp928 <parth.psu@gmail.com>
Copy link
Collaborator

@lumjjb lumjjb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor changes, else LGTM!

package common

// ReferenceType is an [idstring] as defined in Appendix VI;
type ReferenceType string
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think its fine to leave them as strings, we explicitly want to use the types specified in the spec.

const (
Cpe23Type ReferenceType = "cpe23Type"
PurlType ReferenceType = "purl"
Ref2Type ReferenceType = "LocationRef-acmeforge"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is just a testing string and isn't part of the spec (https://spdx.github.io/spdx-spec/v2.3/external-repository-identifiers/#f3-package-manager)

Cpe types are technically under the security section, so another file would be good here! Thanks!

Signed-off-by: pxp928 <parth.psu@gmail.com>
Copy link
Collaborator

@lumjjb lumjjb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM , needs additional enums specified as in #153 but this sets the boilerplate for them.

@lumjjb lumjjb merged commit 97ef16c into spdx:main Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants