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.
This PR normalizes the
referenceCategory
for external references when reading JSON and YAML to read the alternate values with underscores, likePERSISTENT_ID
andPACKAGE_MANAGER
and translate these to the values in the SPDX spec, which instead have dashes:PERSISTENT-ID
andPACKAGE-MANAGER
, respectively. This allows tools reading and writing SPDX to simply use the spec values with dashes.Fixes #196