spdx-spec icon indicating copy to clipboard operation
spdx-spec copied to clipboard

A typing question regarding LicenseInfoInFile

Open maxhbr opened this issue 3 years ago • 1 comments

I am confused by the fallback of LicenseInfoInFile:

https://github.com/spdx/spdx-spec/blob/810d229fed8093aae03d9dd42aa0a8174611121a/chapters/file-information.md?plain=1#L303

I think examples for parsed values are LicenseInfoInFile=[NONE] or LicenseInfoInFile=["MIT", NOASSERTION], so it is a list where elements can be NONE or NOASSERTION or SPDX License Expression. But the fallback tells me, that it should be LicenseInfoInFile=NOASSERTION if not present, which is no longer a list? Is this correct, or should it be [NOASSERTION] as default

maxhbr avatar Nov 13 '22 20:11 maxhbr

@maxhbr Good point - we should not change the type for the fallback IMO. I agree with your proposed solution.

goneall avatar Nov 14 '22 16:11 goneall

This field has been removed in SPDX 3.0 - closing as not planned

goneall avatar Apr 04 '24 23:04 goneall