-
Notifications
You must be signed in to change notification settings - Fork 0
/
vex-repository.schema.json
57 lines (57 loc) · 1.82 KB
/
vex-repository.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"description": "Schema for the VEX Repository manifest file",
"properties": {
"name": {
"type": "string",
"description": "The name of the VEX repository"
},
"description": {
"type": "string",
"description": "A brief description of the VEX repository"
},
"versions": {
"type": "array",
"description": "An array of available VEX specification versions, sorted from oldest to newest",
"items": {
"type": "object",
"properties": {
"spec_version": {
"type": "string",
"pattern": "^[0-9]+\\.[0-9]+$",
"description": "The version of the VEX Repository Specification implemented (e.g., '0.1', '1.0')"
},
"locations": {
"type": "array",
"description": "An array of objects describing VEX data locations",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "The URL of the VEX data location"
}
},
"required": ["url"]
},
"minItems": 1
},
"update_interval": {
"type": "string",
"pattern": "^[0-9]+([hm])$",
"description": "The recommended update check interval for this version's VEX data (e.g., '1h', '30m')"
},
"repository_specific": {
"type": "object",
"description": "Additional repository-specific information"
}
},
"required": ["spec_version", "locations", "update_interval"]
},
"minItems": 1
}
},
"required": ["name", "description", "versions"]
}