annotate schema/response.json @ 67:ada4cd9daaba
docrefactor
Pull out serialisedarray schema
author |
Chris Cannam |
date |
Wed, 05 Oct 2016 09:58:49 +0100 |
parents |
60c53d43a32b |
children |
8f3ba64ec888 |
rev |
line source |
Chris@36
|
1 {
|
Chris@36
|
2 "id": "http://vamp-plugins.org/json/schema/response#",
|
Chris@36
|
3 "$schema": "http://json-schema.org/draft-04/schema#",
|
Chris@36
|
4 "description": "schema for a success or failure response to a request",
|
Chris@36
|
5 "type": "object",
|
Chris@36
|
6 "properties": {
|
Chris@49
|
7 "type": {
|
Chris@49
|
8 "type": "string"
|
Chris@49
|
9 },
|
Chris@36
|
10 "success": {
|
Chris@36
|
11 "type": "boolean"
|
Chris@36
|
12 },
|
Chris@36
|
13 "errorText": {
|
Chris@36
|
14 "type": "string"
|
Chris@49
|
15 },
|
Chris@49
|
16 "content": {
|
Chris@61
|
17 "anyOf": [
|
Chris@61
|
18 { "$ref": "http://vamp-plugins.org/json/schema/listresponse#" },
|
Chris@61
|
19 { "$ref": "http://vamp-plugins.org/json/schema/loadresponse#" },
|
Chris@61
|
20 { "$ref": "http://vamp-plugins.org/json/schema/configurationresponse#" },
|
Chris@61
|
21 { "$ref": "http://vamp-plugins.org/json/schema/processresponse#" },
|
Chris@61
|
22 { "$ref": "http://vamp-plugins.org/json/schema/finishresponse#" }
|
Chris@61
|
23 ]
|
Chris@36
|
24 }
|
Chris@36
|
25 },
|
Chris@49
|
26 "required": [ "type", "success" ],
|
Chris@36
|
27 "additionalProperties": false
|
Chris@36
|
28 }
|
Chris@36
|
29
|