# HG changeset patch # User Chris Cannam # Date 1458147505 0 # Node ID 0f7b1f4c52ad54bcdfc46d298aca97ea736994b2 # Parent f69c792a303c1c68fa416175350ecf6e7f6297c1 Simple general request type diff -r f69c792a303c -r 0f7b1f4c52ad examples/request.json --- /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"]}} + diff -r f69c792a303c -r 0f7b1f4c52ad schema/request.json --- /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 +} +