view schema/feature.json @ 63:8f3ba64ec888 jsonrpc

Start reworking request-response into json-rpc format
author Chris Cannam
date Wed, 05 Oct 2016 09:19:05 +0100
parents a444a851bd67
children 4e9ea8f177b6
line wrap: on
line source
{
    "id": "http://vamp-plugins.org/json/schema/feature#",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "schema for a Vamp::Plugin::Feature serialisation",
    "type": "object",
    "properties": {
	"timestamp": {
	    "$ref": "http://vamp-plugins.org/json/schema/realtime#"
	},
	"duration": {
	    "$ref": "http://vamp-plugins.org/json/schema/realtime#"
	},
	"label": {
	    "type": "string"
	},
	"featureValues": {
            "anyOf": [
                {
		    "type": "array",
		    "items": { "type": "number" }
		},
                {
		    "type": "string",
                    "pattern": "^[a-zA-Z0-9+/]*=*$"
		}
            ]
	}
    },
    "additionalProperties": false
}