Mercurial > hg > piper
changeset 37:0f7b1f4c52ad
Simple general request type
author | Chris Cannam |
---|---|
date | Wed, 16 Mar 2016 16:58:25 +0000 |
parents | f69c792a303c |
children | 4965e7a462b4 |
files | examples/request.json schema/request.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/request.json Wed Mar 16 16:58:25 2016 +0000 @@ -0,0 +1,2 @@ +{"verb": "load", "content": {"key":"vamp-example-plugins:percussiononsets","inputSampleRate":44100,"adapterFlags":["AdaptInputDomain","AdaptBufferSize"]}} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/request.json Wed Mar 16 16:58:25 2016 +0000 @@ -0,0 +1,17 @@ +{ + "id": "http://vamp-plugins.org/json/schema/request#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a simple serialised request", + "type": "object", + "properties": { + "verb": { + "type": "string" + }, + "content": { + "type": "object" + } + }, + "required": [ "verb" ], + "additionalProperties": false +} +