# HG changeset patch # User Chris Cannam # Date 1458223457 0 # Node ID a5eb5ef2e92db985697589ac839e1b4246481b00 # Parent 22c33bd017bace54b247183b65d86b543eb4ed31 Process block (input to process call) diff -r 22c33bd017ba -r a5eb5ef2e92d examples/processblock.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/processblock.json Thu Mar 17 14:04:17 2016 +0000 @@ -0,0 +1,1 @@ +{"input":[{"b64values": "AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA"}], "timestamp": {"n": 141590000, "s": 3}} diff -r 22c33bd017ba -r a5eb5ef2e92d schema/processblock.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/processblock.json Thu Mar 17 14:04:17 2016 +0000 @@ -0,0 +1,29 @@ +{ + "id": "http://vamp-plugins.org/json/schema/processblock#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a serialised input into a plugin process call", + "type": "object", + "properties": { + "timestamp": { + "$ref": "http://vamp-plugins.org/json/schema/realtime#" + }, + "input": { + "type": "array", + "items": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { "type": "number" } + }, + "b64values": { + "type": "string" + } + } + } + } + }, + "additionalProperties": false +} + + diff -r 22c33bd017ba -r a5eb5ef2e92d test.sh --- a/test.sh Thu Mar 17 12:40:46 2016 +0000 +++ b/test.sh Thu Mar 17 14:04:17 2016 +0000 @@ -7,3 +7,9 @@ jsonschema -i "$ex" schema/$(basename "$ex") done +for s in schema/*.json ; do + if [ ! -f examples/$(basename "$s") ]; then + echo "WARNING: No example file for schema $s" + fi +done +