# HG changeset patch # User Chris Cannam # Date 1457533805 0 # Node ID 4c3ac59c9089f97ce3fc5f33bdb357a60ad6df41 # Parent 4a33a6bfc4b878b9cf6fed90aef1bab08b7b22c3 Plugin configuration data diff -r 4a33a6bfc4b8 -r 4c3ac59c9089 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Wed Mar 09 14:30:05 2016 +0000 @@ -0,0 +1,2 @@ +syntax: glob +*~ diff -r 4a33a6bfc4b8 -r 4c3ac59c9089 examples/pluginconfig.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/pluginconfig.json Wed Mar 09 14:30:05 2016 +0000 @@ -0,0 +1,1 @@ +{"blockSize": 512, "channelCount": 2, "parameterValues": {"sensitivity": 40, "threshold": 3}, "stepSize": 1024} diff -r 4a33a6bfc4b8 -r 4c3ac59c9089 schema/basic.json --- a/schema/basic.json Tue Mar 08 17:17:57 2016 +0000 +++ b/schema/basic.json Wed Mar 09 14:30:05 2016 +0000 @@ -4,9 +4,16 @@ "description": "schema for the basic part of various Vamp descriptors", "type": "object", "properties": { - "identifier": { "type": "string" }, - "name": { "type": "string" }, - "description": { "type": "string" } + "identifier": { + "type": "string", + "pattern": "^[a-zA-Z0-9_-]+$" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + } }, "required": [ "identifier" ], "additionalProperties": false diff -r 4a33a6bfc4b8 -r 4c3ac59c9089 schema/pluginconfiguration.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/pluginconfiguration.json Wed Mar 09 14:30:05 2016 +0000 @@ -0,0 +1,32 @@ +{ + "id": "http://vamp-plugins.org/json/schema/pluginconfiguration#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a serialised bundle of configuration data associated with a Vamp Plugin", + "type": "object", + "properties": { + "parameterValues": { + "type": "object", + "patternProperties": { + "^[a-zA-Z0-9_-]+$": { + "type": "number" + } + }, + "additionalProperties": false + }, + "currentProgram": { + "type": "string" + }, + "channelCount": { + "type": "integer" + }, + "stepSize": { + "type": "integer" + }, + "blockSize": { + "type": "integer" + } + }, + "required": [ "channelCount", "stepSize", "blockSize" ], + "additionalProperties": false +} +