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

feat: normalize external reference category when reading JSON and YAML #203

Conversation

kzantow
Copy link
Collaborator

@kzantow kzantow commented Mar 24, 2023

This PR normalizes the referenceCategory for external references when reading JSON and YAML to read the alternate values with underscores, like PERSISTENT_ID and PACKAGE_MANAGER and translate these to the values in the SPDX spec, which instead have dashes: PERSISTENT-ID and PACKAGE-MANAGER, respectively. This allows tools reading and writing SPDX to simply use the spec values with dashes.

Fixes #196

Signed-off-by: Keith Zantow <kzantow@gmail.com>
@kzantow
Copy link
Collaborator Author

kzantow commented Mar 24, 2023

Closing this in favor of: #204

@kzantow kzantow closed this Mar 24, 2023
@kzantow kzantow deleted the feat/handle-alternate-reference-categories branch March 24, 2023 15:51
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.

SPDX JSON 2.2 should handle reference category PACKAGE_MANAGER
1 participant