tools
tools copied to clipboard
DocumentRef-1:LicenseRef-XY flagged as invalid
"PackageLicenseConcluded: DocumentRef-1:LicenseRef-XY" in an SPDX document is valid according to Appendix IV of the spec., but the verifier fails:
Invalid license id 'DocumentRef-1:LicenseRef-XY'. Must start with 'LicenseRef-' and made up of the characters from the set 'a'-'z', 'A'-'Z', '0'-'9', '+', '_', '.', and '-'.
The spdx-tools version I tested was release 2.1.20.
It looks like the SPDX tools doesn't support external license ref declarations. We will need to add support similar to the ExternalSpdxElement class.