# HG changeset patch # User Chris Cannam # Date 1474031601 -3600 # Node ID eb08485be9f0f9873d22eff7a6ae0fd3c9a04a49 # Parent bc6c2a0902684acb5046e7cf208ccdefc978a8d1 Begin plugin output id / index mapping for use in feature sets diff -r bc6c2a090268 -r eb08485be9f0 examples/featureset.json --- a/examples/featureset.json Mon May 23 16:09:05 2016 +0100 +++ b/examples/featureset.json Fri Sep 16 14:13:21 2016 +0100 @@ -1,1 +1,1 @@ -{"0": [{"b64values": "AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA", "label": "A feature", "timestamp": {"n": 141590000, "s": 3}}]} +{"outputid": [{"b64values": "AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA", "label": "A feature", "timestamp": {"n": 141590000, "s": 3}}]} diff -r bc6c2a090268 -r eb08485be9f0 examples/processresponse.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/processresponse.json Fri Sep 16 14:13:21 2016 +0100 @@ -0,0 +1,2 @@ +{"pluginHandle":12345,"features":{"outputid": [{"b64values": "AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA", "label": "A feature", "timestamp": {"n": 141590000, "s": 3}}]}} + diff -r bc6c2a090268 -r eb08485be9f0 schema/configurationresponse.json --- a/schema/configurationresponse.json Mon May 23 16:09:05 2016 +0100 +++ b/schema/configurationresponse.json Fri Sep 16 14:13:21 2016 +0100 @@ -1,7 +1,7 @@ { "id": "http://vamp-plugins.org/json/schema/configurationresponse#", "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a serialised response to a request to configure a Vamp plugin; normally served as the response field of an object matching the plain response schema", + "description": "schema for a serialised response to a request to configure a Vamp plugin; normally served as the content field of an object matching the plain response schema", "type": "object", "properties": { "outputList": { diff -r bc6c2a090268 -r eb08485be9f0 schema/featureset.json --- a/schema/featureset.json Mon May 23 16:09:05 2016 +0100 +++ b/schema/featureset.json Fri Sep 16 14:13:21 2016 +0100 @@ -4,7 +4,7 @@ "description": "schema for a Vamp::Plugin::FeatureSet serialisation", "type": "object", "patternProperties": { - "^[0-9]+$": { + "^[a-zA-Z0-9_-]+$": { "type": "array", "items": { "$ref": "http://vamp-plugins.org/json/schema/feature#" } } diff -r bc6c2a090268 -r eb08485be9f0 schema/loadresponse.json --- a/schema/loadresponse.json Mon May 23 16:09:05 2016 +0100 +++ b/schema/loadresponse.json Fri Sep 16 14:13:21 2016 +0100 @@ -1,7 +1,7 @@ { "id": "http://vamp-plugins.org/json/schema/loadresponse#", "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a serialised response to a load request for a Vamp Plugin; normally served as the response field of an object matching the plain response schema", + "description": "schema for a serialised response to a load request for a Vamp Plugin; normally served as the content field of an object matching the plain response schema", "type": "object", "properties": { "pluginHandle": { diff -r bc6c2a090268 -r eb08485be9f0 schema/processresponse.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/processresponse.json Fri Sep 16 14:13:21 2016 +0100 @@ -0,0 +1,17 @@ +{ + "id": "http://vamp-plugins.org/json/schema/processresponse#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a serialised response from processing a data block using 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 +} +