-
Notifications
You must be signed in to change notification settings - Fork 1
/
dependency.json
180 lines (177 loc) · 4.05 KB
/
dependency.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Dependency manifest",
"description": "This manifest declares dependency, and defines rules for updating its information",
"definitions": {
"detector": {
"description": "Detector is a technique for updating information",
"type": "object",
"properties": {
"xpath": {
"description": "XPath based detector",
"type": "object",
"properties": {
"url": {
"description": "Website URL",
"type": "string"
},
"xpath": {
"description": "XPath expression",
"type": "string"
},
"regex": {
"description": "Value parsing regular expression rule (value is specified by the single capture group)",
"type": "string"
}
},
"required": ["url", "xpath"]
},
"maven": {
"description": "Maven based detector",
"type": "object",
"properties": {
"repository": {
"description": "Base URL of the Maven repository",
"type": "string"
},
"xpath": {
"description": "XPath expression for the Maven repository metadata XML",
"type": "string"
},
"dateFormat": {
"description": "Date parsing format (default: %Y%m%d%H%M%S)",
"type": "string"
}
}
}
},
"maxProperties": 1,
"minProperties": 1
},
"variable": {
"description": "Variable",
"type": "object",
"properties": {
"name": {
"description": "Variable name",
"type": "string"
},
"value": {
"description": "Variable value",
"type": "string"
}
},
"required": ["name", "value"]
}
},
"type": "object",
"properties": {
"extends": {
"description": "Template manifest settings",
"type": "object",
"properties": {
"template": {
"description": "Template name",
"type": "string"
},
"vars": {
"description": "Variables to be passed to the template",
"type": "array",
"items": {
"description": "Variable",
"$ref": "#/definitions/variable"
}
}
},
"required": ["template"]
},
"name": {
"description": "Dependency name",
"type": "string"
},
"license": {
"description": "Dependency license",
"type": "string"
},
"pages": {
"description": "Various Web pages URLs",
"type": "object",
"properties": {
"home": {
"description": "Official homepage URL",
"type": "string"
},
"download": {
"description": "Download page",
"type": "string"
},
"license": {
"description": "License page",
"type": "string"
},
"docs": {
"description": "Documentation page",
"type": "string"
},
"changelist": {
"description": "Changelog page",
"type": "string"
},
"issues": {
"description": "Issue Tracker page",
"type": "string"
}
},
"required": ["home"]
},
"detectors": {
"description": "Techniques for detecting dependency updates",
"type": "object",
"properties": {
"version": {
"description": "Latest version detector",
"$ref": "#/definitions/detector"
},
"updatetime": {
"description": "Latest update date detector",
"$ref": "#/definitions/detector"
},
"changelist": {
"description": "Latest version changelist detector",
"$ref": "#/definitions/detector"
},
"license": {
"description": "License name detector",
"$ref": "#/definitions/detector"
},
"url": {
"description": "Official homepage URL detector",
"$ref": "#/definitions/detector"
},
"description": {
"description": "Dependency description detector",
"$ref": "#/definitions/detector"
}
},
"required": ["version"]
},
"aliases": {
"description": "Dependency aliases",
"type": "array",
"items": {
"description": "Alias name",
"type": "string"
}
}
},
"anyOf": [
{
"title": "'name' and 'extends' are required",
"required": ["name", "extends"]
},
{
"title": "'name', 'pages' and 'detectors' are required",
"required": ["name", "pages", "detectors"]
}
]
}