Skip to content

ValidateDocument() should allow NOASSERTION and NONE #236

@wallrat

Description

@wallrat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions