forked from d2iq-archive/universe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
v3-resource-schema.json
172 lines (172 loc) · 4.79 KB
/
v3-resource-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
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
{
"additionalProperties": false,
"definitions": {
"cliInfo": {
"required": [
"url",
"kind",
"contentHash"
],
"properties": {
"url": {
"type": "string",
"description": "URL for the binary CLI."
},
"contentHash": {
"items": {
"$ref": "#/definitions/hash"
},
"minItems": 1,
"type": "array",
"description": "List of hashes for the binary CLI that are described in the URL property."
},
"kind": {
"enum": [
"executable",
"zip"
],
"type": "string",
"description": "The format of the CLI."
}
},
"additionalProperties": false,
"type": "object",
"description": "Schema for adding a supported CLI to your package."
},
"hash": {
"required": [
"algo",
"value"
],
"properties": {
"algo": {
"enum": [
"sha256"
],
"type": "string",
"description": "The algorithm used to compute the hash."
},
"value": {
"type": "string",
"description": "The value of the hash."
}
},
"additionalProperties": false,
"type": "object",
"description": "CLI validation."
}
},
"properties": {
"assets": {
"properties": {
"uris": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"description": "This is a mapping of aliases to HTTP resources. The aliases enumerated here are available during resolution of the marathon.json.mustache file."
},
"container": {
"properties": {
"docker": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"additionalProperties": false,
"type": "object",
"description": "This is a mapping of aliases to Docker images. The aliases enumerated here are available during resolution of marathon.json.mustache file."
}
},
"additionalProperties": false,
"type": "object",
"description": "Object that enumerates all of the required package assets."
},
"images": {
"properties": {
"icon-small": {
"description": "PNG icon URL, preferably 48 by 48 pixels.",
"type": "string"
},
"icon-large": {
"description": "PNG icon URL, preferably 256 by 256 pixels.",
"type": "string"
},
"screenshots": {
"items": {
"description": "PNG screen URL, preferably 1024 by 1024 pixels.",
"type": "string"
},
"type": "array"
},
"icon-medium": {
"description": "PNG icon URL, preferably 128 by 128 pixels.",
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"description": "Images used by DC/OS to display the package."
},
"cli": {
"required": [
"binaries"
],
"properties": {
"binaries": {
"minProperties": 1,
"properties": {
"linux": {
"required": [
"x86-64"
],
"properties": {
"x86-64": {
"$ref": "#/definitions/cliInfo"
}
},
"additionalProperties": false,
"type": "object",
"description": "Schema for the Linux CLI."
},
"windows": {
"required": [
"x86-64"
],
"properties": {
"x86-64": {
"$ref": "#/definitions/cliInfo"
}
},
"additionalProperties": false,
"type": "object",
"description": "Schema for the Windows CLI."
},
"darwin": {
"required": [
"x86-64"
],
"properties": {
"x86-64": {
"$ref": "#/definitions/cliInfo"
}
},
"additionalProperties": false,
"type": "object",
"description": "Schema for the MacOS (darwin) CLI."
}
},
"additionalProperties": false,
"type": "object",
"description": "Enumerates all of the available binaries in this package."
}
},
"additionalProperties": false,
"type": "object",
"description": "Object that describes all of the required externally hosted assets for this package."
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}