-
Notifications
You must be signed in to change notification settings - Fork 44
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
Fix cardinality of (primary)Purpose #307
Conversation
Fixes #133 Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we still need a Purpose field with the original cardinality. Specifically there are use cases when you have a something that is "primary", but others may want to find "secondary" elements as well. Example - primary of "evidence", secondary of "data". primary of "operatingSystem", secondary of "executable", etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would like to see this with a "purpose" and if you want to add in a "primarypurpose" it should be a separate field.
Multiple purposes is planned to be used in the Safety profile, therefore we should add back purpose with multiple cardinalities. |
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
I added the field |
@kestewart Please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed in call. Going with additionalpurpose, as well as primary purpose.
Fixes #133
This PR just renames purpose to primaryPurpose and changes the cardinality to 0..1 to be consistent with SPDX 2.3 and support the CycloneDX translation.