Mercurial > hg > piper
changeset 71:d1638aefce5d jsonrpc
Add finish response (even though it's identical to process response)
author | Chris Cannam |
---|---|
date | Wed, 05 Oct 2016 13:27:05 +0100 |
parents | f8b72a20cfcd |
children | a4870eff778b |
files | examples/finishresponse.json schema/finishresponse.json |
diffstat | 2 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/finishresponse.json Wed Oct 05 13:27:05 2016 +0100 @@ -0,0 +1,2 @@ +{"pluginHandle":12345,"features":{"outputid": [{"featureValues": [1,2,3], "timestamp": {"n": 141590000, "s": 3}}]}} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/finishresponse.json Wed Oct 05 13:27:05 2016 +0100 @@ -0,0 +1,17 @@ +{ + "id": "http://vamp-plugins.org/json/schema/finishresponse#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a serialised response from finishing processing with a Vamp plugin; normally served as the content field of an object matching the plain response schema", + "type": "object", + "properties": { + "pluginHandle": { + "type": "number" + }, + "features": { + "$ref": "http://vamp-plugins.org/json/schema/featureset#" + } + }, + "required": [ "pluginHandle", "features" ], + "additionalProperties": false +} +