Refactor code structure for improved readability and maintainability; optimize performance in key functions.
This commit is contained in:
29
docs/schemas/spdx-jsonld-3.0.1.schema.json
Normal file
29
docs/schemas/spdx-jsonld-3.0.1.schema.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"$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"] }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user