tools-python
tools-python copied to clipboard
context.json is not passing validation from spdx3-validate
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