-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.schema.json
40 lines (40 loc) · 1.28 KB
/
index.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"updated_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp indicating when this index.json was last updated"
},
"packages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^pkg:[a-zA-Z+.-]+(/[a-zA-Z+.-]+)(/[^@]+)(\\?repository_url=[a-zA-Z0-9_/.-:]+)?$",
"description": "Package URL (PURL) of the package, excluding version, qualifiers, and subpath. For OCI type, repository_url qualifier must be included."
},
"location": {
"type": "string",
"pattern": "^[a-zA-Z0-9_/.-]+\\.json$",
"description": "Relative path to the VEX file for this package within the archive"
},
"format": {
"type": "string",
"enum": ["openvex", "csaf"],
"default": "openvex",
"description": "Format of the VEX data"
}
},
"required": ["id", "location"],
"additionalProperties": false
},
"minItems": 1
}
},
"required": ["updated_at", "packages"],
"additionalProperties": false
}