Skip to content

Commit f552a4b

Browse files
committed
regenerated schemas
1 parent 409e1c5 commit f552a4b

1 file changed

Lines changed: 185 additions & 6 deletions

File tree

common/schemas/stacks-api.json

Lines changed: 185 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,21 @@
146146
},
147147
"services": {
148148
"type": "array",
149-
"items": {}
149+
"items": {
150+
"$ref": "#/definitions/Service"
151+
}
150152
},
151153
"repositories": {
152154
"type": "array",
153-
"items": {}
155+
"items": {
156+
"$ref": "#/definitions/GitHubRepository"
157+
}
154158
},
155159
"dependencies": {
156160
"type": "array",
157-
"items": {}
161+
"items": {
162+
"$ref": "#/definitions/Dependency"
163+
}
158164
}
159165
},
160166
"required": ["stack", "services", "repositories", "dependencies"],
@@ -164,6 +170,173 @@
164170
"required": ["url", "result"],
165171
"additionalProperties": false
166172
},
173+
"Service": {
174+
"type": "object",
175+
"properties": {
176+
"id": {
177+
"type": "string"
178+
},
179+
"stackName": {
180+
"type": "string"
181+
},
182+
"displayName": {
183+
"type": "string"
184+
},
185+
"description": {
186+
"type": "string"
187+
},
188+
"workingDirectory": {
189+
"type": "string"
190+
},
191+
"repositoryId": {
192+
"type": "string"
193+
},
194+
"autoFetchEnabled": {
195+
"type": "boolean"
196+
},
197+
"autoFetchIntervalMinutes": {
198+
"type": "number"
199+
},
200+
"lastFetchedAt": {
201+
"type": "string"
202+
},
203+
"autoRestartOnFetch": {
204+
"type": "boolean"
205+
},
206+
"dependencyIds": {
207+
"type": "array",
208+
"items": {
209+
"type": "string"
210+
}
211+
},
212+
"prerequisiteServiceIds": {
213+
"type": "array",
214+
"items": {
215+
"type": "string"
216+
}
217+
},
218+
"installCommand": {
219+
"type": "string"
220+
},
221+
"buildCommand": {
222+
"type": "string"
223+
},
224+
"runCommand": {
225+
"type": "string"
226+
},
227+
"installStatus": {
228+
"$ref": "#/definitions/InstallStatus"
229+
},
230+
"buildStatus": {
231+
"$ref": "#/definitions/BuildStatus"
232+
},
233+
"runStatus": {
234+
"$ref": "#/definitions/RunStatus"
235+
},
236+
"lastInstalledAt": {
237+
"type": "string"
238+
},
239+
"lastBuiltAt": {
240+
"type": "string"
241+
},
242+
"lastStartedAt": {
243+
"type": "string"
244+
},
245+
"createdAt": {
246+
"type": "string"
247+
},
248+
"updatedAt": {
249+
"type": "string"
250+
}
251+
},
252+
"required": [
253+
"id",
254+
"stackName",
255+
"displayName",
256+
"description",
257+
"workingDirectory",
258+
"autoFetchEnabled",
259+
"autoFetchIntervalMinutes",
260+
"autoRestartOnFetch",
261+
"dependencyIds",
262+
"prerequisiteServiceIds",
263+
"runCommand",
264+
"installStatus",
265+
"buildStatus",
266+
"runStatus",
267+
"createdAt",
268+
"updatedAt"
269+
],
270+
"additionalProperties": false
271+
},
272+
"InstallStatus": {
273+
"type": "string",
274+
"enum": ["not-installed", "installing", "installed", "failed"]
275+
},
276+
"BuildStatus": {
277+
"type": "string",
278+
"enum": ["not-built", "building", "built", "failed"]
279+
},
280+
"RunStatus": {
281+
"type": "string",
282+
"enum": ["stopped", "starting", "running", "stopping", "error"]
283+
},
284+
"GitHubRepository": {
285+
"type": "object",
286+
"properties": {
287+
"id": {
288+
"type": "string"
289+
},
290+
"stackName": {
291+
"type": "string"
292+
},
293+
"url": {
294+
"type": "string"
295+
},
296+
"displayName": {
297+
"type": "string"
298+
},
299+
"description": {
300+
"type": "string"
301+
},
302+
"createdAt": {
303+
"type": "string"
304+
},
305+
"updatedAt": {
306+
"type": "string"
307+
}
308+
},
309+
"required": ["id", "stackName", "url", "displayName", "description", "createdAt", "updatedAt"],
310+
"additionalProperties": false
311+
},
312+
"Dependency": {
313+
"type": "object",
314+
"properties": {
315+
"id": {
316+
"type": "string"
317+
},
318+
"stackName": {
319+
"type": "string"
320+
},
321+
"name": {
322+
"type": "string"
323+
},
324+
"checkCommand": {
325+
"type": "string"
326+
},
327+
"installationHelp": {
328+
"type": "string"
329+
},
330+
"createdAt": {
331+
"type": "string"
332+
},
333+
"updatedAt": {
334+
"type": "string"
335+
}
336+
},
337+
"required": ["id", "stackName", "name", "checkCommand", "installationHelp", "createdAt", "updatedAt"],
338+
"additionalProperties": false
339+
},
167340
"ImportStackEndpoint": {
168341
"type": "object",
169342
"properties": {
@@ -185,15 +358,21 @@
185358
},
186359
"services": {
187360
"type": "array",
188-
"items": {}
361+
"items": {
362+
"$ref": "#/definitions/Service"
363+
}
189364
},
190365
"repositories": {
191366
"type": "array",
192-
"items": {}
367+
"items": {
368+
"$ref": "#/definitions/GitHubRepository"
369+
}
193370
},
194371
"dependencies": {
195372
"type": "array",
196-
"items": {}
373+
"items": {
374+
"$ref": "#/definitions/Dependency"
375+
}
197376
}
198377
},
199378
"required": ["stack", "services", "repositories", "dependencies"],

0 commit comments

Comments
 (0)