Mercurial > hg > piper
changeset 72:a4870eff778b jsonrpc
Add list request to schema
author | Chris Cannam |
---|---|
date | Wed, 05 Oct 2016 13:52:28 +0100 |
parents | d1638aefce5d |
children | cfb43219c3ea |
files | examples/listrequest.json schema/listrequest.json schema/request.json |
diffstat | 3 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/listrequest.json Wed Oct 05 13:52:28 2016 +0100 @@ -0,0 +1,1 @@ +{}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/listrequest.json Wed Oct 05 13:52:28 2016 +0100 @@ -0,0 +1,9 @@ +{ + "id": "http://vamp-plugins.org/json/schema/listrequest#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a serialised list request for feature extractors; normally served as the content field of an object matching the plain request schema", + "type": "object", + "properties": { + }, + "additionalProperties": false +}
--- a/schema/request.json Wed Oct 05 13:27:05 2016 +0100 +++ b/schema/request.json Wed Oct 05 13:52:28 2016 +0100 @@ -9,6 +9,7 @@ }, "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#" },