view json/schema/rpcrequest.json @ 80:420e9248e7b9

README
author Chris Cannam
date Fri, 07 Oct 2016 15:55:51 +0100
parents f044f6a309e0
children 1f4ed70d8f1e
line wrap: on
line source
{
    "id": "http://vamp-plugins.org/json/schema/rpcrequest#",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "schema for a serialised request compatible with JSON-RPC",
    "type": "object",
    "properties": {
	"method": {
	    "type": "string"
	},
	"params": {
            "anyOf": [
                { "$ref": "http://vamp-plugins.org/json/schema/listrequest#" },
                { "$ref": "http://vamp-plugins.org/json/schema/loadrequest#" },
                { "$ref": "http://vamp-plugins.org/json/schema/configurationrequest#" },
                { "$ref": "http://vamp-plugins.org/json/schema/processrequest#" },
                { "$ref": "http://vamp-plugins.org/json/schema/finishrequest#" }
            ]                
	},
        "id": {
            "anyOf": [
                { "type": "string" },
                { "type": "number" }
            ]
        },
        "jsonrpc": {
            "type": "string"
        }
    },
    "required": [ "method" ],
    "additionalProperties": false
}