Chris@36: { Chris@73: "id": "http://vamp-plugins.org/json/schema/rpcresponse#", Chris@36: "$schema": "http://json-schema.org/draft-04/schema#", Chris@74: "description": "schema for a serialised response to an RPC request; compatible with JSON-RPC, except that the method name must be included here as well as in the request", Chris@36: "type": "object", Chris@69: "oneOf": [ { Chris@69: "properties": { Chris@70: "method": { Chris@70: "type": "string" Chris@70: }, Chris@69: "result": { Chris@69: "anyOf": [ Chris@69: { "$ref": "http://vamp-plugins.org/json/schema/listresponse#" }, Chris@69: { "$ref": "http://vamp-plugins.org/json/schema/loadresponse#" }, Chris@69: { "$ref": "http://vamp-plugins.org/json/schema/configurationresponse#" }, Chris@69: { "$ref": "http://vamp-plugins.org/json/schema/processresponse#" }, Chris@69: { "$ref": "http://vamp-plugins.org/json/schema/finishresponse#" } Chris@69: ] Chris@69: }, Chris@69: "id": { Chris@69: "anyOf": [ Chris@69: { "type": "string" }, Chris@69: { "type": "number" } Chris@69: ] Chris@63: }, Chris@69: "jsonrpc": { Chris@69: "type": "string" Chris@69: } Chris@63: }, Chris@70: "required": [ "method", "result" ], Chris@69: "additionalProperties": false Chris@69: }, { Chris@69: "properties": { Chris@70: "method": { Chris@70: "type": "string" Chris@70: }, Chris@69: "error": { Chris@69: "$ref": "http://vamp-plugins.org/json/schema/error#" Chris@69: }, Chris@69: "id": { Chris@69: "anyOf": [ Chris@69: { "type": "string" }, Chris@69: { "type": "number" } Chris@69: ] Chris@63: }, Chris@69: "jsonrpc": { Chris@69: "type": "string" Chris@69: } Chris@69: }, Chris@70: "required": [ "method", "error" ], Chris@69: "additionalProperties": false Chris@69: } ] Chris@36: } Chris@63: Chris@63: