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

Fix cardinality of (primary)Purpose #307

Merged
merged 2 commits into from
May 23, 2023
Merged

Fix cardinality of (primary)Purpose #307

merged 2 commits into from
May 23, 2023

Conversation

goneall
Copy link
Member

@goneall goneall commented May 7, 2023

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.

Fixes #133

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
@goneall goneall requested review from zvr and kestewart May 7, 2023 14:44
@tsteenbe tsteenbe added this to the 3.0-rc2 milestone May 7, 2023
Copy link
Contributor

@kestewart kestewart left a 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.

Copy link
Contributor

@kestewart kestewart left a 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.

@goneall
Copy link
Member Author

goneall commented May 16, 2023

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>
@goneall
Copy link
Member Author

goneall commented May 16, 2023

I added the field additionalPurpose to capture additional purposes. The original name purpose may be confused with the primaryPurpose field.

@goneall
Copy link
Member Author

goneall commented May 16, 2023

@kestewart Please review

Copy link
Contributor

@kestewart kestewart left a 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.

@kestewart kestewart merged commit ab0391a into main May 23, 2023
@bact bact deleted the primarypurpose branch August 28, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename packagePurpose to primaryPackagePurpose
3 participants