tools-golang icon indicating copy to clipboard operation
tools-golang copied to clipboard

ValidateDocument() should allow NOASSERTION and NONE

Open wallrat opened this issue 1 year ago • 0 comments

According to the Spec 11.1.1

In cases where there are "known unknowns", the use of the keyword NOASSERTION can be used on the right hand side of a relationship to indicate that the author is not asserting whether there are other SPDX elements (package/file/snippet) that are connected by relationships or not. That is, there could be some, but the author is not asserting one way or another.

Similarly, the use of the keyword NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it.

Currently the the ValidateDocument func returns an error when RHS is one of the above.


Note: as described #231 ValidateDocument also fails when right hand side is an external reference. Both of these cases we see in the wild.

wallrat avatar Apr 11 '24 09:04 wallrat