view json/schema/rpcrequest.json @ 86:1f4ed70d8f1e piperurl

Switch json/schema to piper/json/schema in URLs
author Chris Cannam
date Wed, 02 Nov 2016 10:49:45 +0000
parents f044f6a309e0
children
line wrap: on
line source
{
    "id": "http://vamp-plugins.org/piper/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/piper/json/schema/listrequest#" },
                { "$ref": "http://vamp-plugins.org/piper/json/schema/loadrequest#" },
                { "$ref": "http://vamp-plugins.org/piper/json/schema/configurationrequest#" },
                { "$ref": "http://vamp-plugins.org/piper/json/schema/processrequest#" },
                { "$ref": "http://vamp-plugins.org/piper/json/schema/finishrequest#" }
            ]                
	},
        "id": {
            "anyOf": [
                { "type": "string" },
                { "type": "number" }
            ]
        },
        "jsonrpc": {
            "type": "string"
        }
    },
    "required": [ "method" ],
    "additionalProperties": false
}