Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions bin/check-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ set -e

THIS_DIR="$(dirname "$0")"
SPDX_VERSION="3.0.1"
SCHEMA_URL="https://spdx.org/schema/${SPDX_VERSION}/spdx-json-schema.json"
RDF_URL="https://spdx.org/rdf/${SPDX_VERSION}/spdx-model.ttl"
CONTEXT_URL="https://spdx.org/rdf/${SPDX_VERSION}/spdx-context.jsonld"
SPDX_VERSION_MAJOR_MINOR="$(echo "$SPDX_VERSION" | cut -d. -f1,2)" # 3.0.1 -> 3.0; 3.0 -> 3.0
SCHEMA_URL="https://spdx.org/schema/${SPDX_VERSION_MAJOR_MINOR}/spdx-json-schema.json"
RDF_URL="https://spdx.org/rdf/${SPDX_VERSION_MAJOR_MINOR}/spdx-model.ttl"
CONTEXT_URL="https://spdx.org/rdf/${SPDX_VERSION_MAJOR_MINOR}/spdx-context.jsonld"

check_schema() {
check-jsonschema \
Expand Down
2 changes: 1 addition & 1 deletion examples/jsonld/package_sbom.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@context": "https://spdx.org/rdf/3.0.1/spdx-context.jsonld",
"@context": "https://spdx.org/rdf/3.0/spdx-context.jsonld",
"@graph": [
{
"type": "CreationInfo",
Expand Down
Loading