Files
git.stella-ops.org/docs/schemas/spdx-jsonld-3.0.1.schema.json

30 lines
751 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://stellaops.io/schemas/spdx-jsonld-3.0.1.schema.json",
"title": "SPDX 3.0.1 JSON-LD (minimal)",
"type": "object",
"required": ["@context", "@graph"],
"properties": {
"@context": {
"const": "https://spdx.org/rdf/3.0.1/spdx-context.jsonld"
},
"@graph": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["type"],
"properties": {
"type": { "type": "string" },
"spdxId": { "type": "string" },
"@id": { "type": "string" }
},
"anyOf": [
{ "required": ["spdxId"] },
{ "required": ["@id"] }
]
}
}
}
}