# HG changeset patch # User Chris Cannam # Date 1457537021 0 # Node ID 216a78d1fa52881518b61c19a8fc2c02fb089349 # Parent 4c3ac59c9089f97ce3fc5f33bdb357a60ad6df41 Load request/response diff -r 4c3ac59c9089 -r 216a78d1fa52 schema/loadrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/loadrequest.json Wed Mar 09 15:23:41 2016 +0000 @@ -0,0 +1,20 @@ +{ + "id": "http://vamp-plugins.org/json/schema/loadrequest#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a serialised load request for a Vamp Plugin", + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "inputSampleRate": { + "type": "number" + }, + "adapterFlags": { + "$ref": "http://vamp-plugins.org/json/schema/enums#/definitions/adapter_flags" + } + }, + "required": [ "key", "inputSampleRate" ], + "additionalProperties": false +} + diff -r 4c3ac59c9089 -r 216a78d1fa52 schema/loadresponse.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/loadresponse.json Wed Mar 09 15:23:41 2016 +0000 @@ -0,0 +1,23 @@ +{ + "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", + "type": "object", + "properties": { + "pluginHandle": { + "type": "number" + }, + "staticData": { + "$ref": "http://vamp-plugins.org/json/schema/pluginstaticdata#" + }, + "defaultConfiguration": { + "$ref": "http://vamp-plugins.org/json/schema/pluginconfiguration#" + }, + "errorText": { + "type": "string" + } + }, + "required": [ ], + "additionalProperties": false +} +