Nuget UNLICENSED License Expression Produces Invalid File #915
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
ready for development
Issue is sufficiently defined and suitable for contributors to start working
Nuget documentation defines UNLICENSED as a valid license-expression: https://github.com/nuget/home/wiki/packaging-license-within-the-nupkg-(technical-spec)#nugets-license-expression-abnf
dotnet-CycloneDX: version: 3.0.6
Steps to reproduce:
<license type="expression">UNLICENSED</license>
Result:
Output contains:
This is invalid because a license ID element is required to contain an SPDX-valid string. "UNLICENSED" is not allowed ( https://cyclonedx.org/docs/1.6/json/#tab-pane_metadata_component_licenses_oneOf_i0_items_license_oneOf_i0 ) on the list of valid SPDX ENUM values.
cyclonedx --version: 0.27.1+6c0e6c8f45d446ed4a28891040592e4ae4a39c3c
cyclonedx validate --input-file target_dotnet.xml --input-format xml --fail-on-errors --input-version=v1_5
Desired Output:
Reference via License Name:
The text was updated successfully, but these errors were encountered: