Files
git.stella-ops.org/docs/schemas/spdx-jsonld-3.0.1.schema.json
2026-01-22 19:08:46 +02:00

85 lines
2.4 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://spdx.org/rdf/3.0.1/spdx-json-schema.json",
"title": "SPDX 3.0.1 JSON-LD Schema",
"description": "Schema for SPDX 3.0.1 documents in JSON-LD format",
"type": "object",
"properties": {
"@context": {
"type": "string",
"description": "JSON-LD context for SPDX 3.0"
},
"@graph": {
"type": "array",
"description": "Array of SPDX elements",
"items": {
"type": "object",
"properties": {
"@type": { "type": "string" },
"@id": { "type": "string" },
"spdxId": { "type": "string" },
"name": { "type": "string" },
"description": { "type": "string" },
"comment": { "type": "string" },
"creationInfo": { "type": "object" },
"verifiedUsing": { "type": "array" },
"externalRef": { "type": "array" },
"externalIdentifier": { "type": "array" },
"extension": { "type": "array" }
}
}
},
"spdxVersion": {
"type": "string",
"pattern": "^SPDX-3\\.[0-9]+(\\.[0-9]+)?$"
},
"creationInfo": {
"type": "object",
"properties": {
"@type": { "type": "string" },
"specVersion": { "type": "string" },
"created": { "type": "string", "format": "date-time" },
"createdBy": { "type": "array" },
"createdUsing": { "type": "array" },
"profile": { "type": "array" },
"dataLicense": { "type": "string" }
}
},
"rootElement": {
"type": "array",
"items": { "type": "string" }
},
"element": {
"type": "array",
"items": {
"type": "object",
"properties": {
"@type": { "type": "string" },
"spdxId": { "type": "string" },
"name": { "type": "string" },
"summary": { "type": "string" },
"description": { "type": "string" },
"comment": { "type": "string" },
"verifiedUsing": { "type": "array" },
"externalRef": { "type": "array" },
"externalIdentifier": { "type": "array" }
}
}
},
"namespaceMap": {
"type": "array",
"items": {
"type": "object",
"properties": {
"prefix": { "type": "string" },
"namespace": { "type": "string", "format": "uri" }
}
}
},
"imports": {
"type": "array",
"items": { "type": "string", "format": "uri" }
}
}
}