Skip to content

context.json is not passing validation from spdx3-validate #863

@pellecchialuigi

Description

@pellecchialuigi

I see SPDX community is suggesting to use spdx3-validate python tool to perform json generated sbom validation at https://github.com/spdx/spdx-3-model/blob/develop/serialization/jsonld/validation.md

Running this too against a generated SPDX SBOM based on model 3 is failing the validation due:

file.json has unknown version @context

I'm wondering if we can just replace the context.json file with a string like "https://spdx.org/rdf/3.0.1/spdx-context.jsonld" as it is used in the spdx model 3 examples at https://github.com/spdx/spdx-examples/blob/master/software/example1/spdx3.0/example1.json

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