Mercurial > hg > piper
changeset 101:a1072b81d50a
Feature set is a map, i.e. an object, with output number as key and feature list as value
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 14 Mar 2016 13:04:01 +0000 |
parents | d86881046395 |
children | 673d73f955dd |
files | schema/featureset.json |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/schema/featureset.json Wed Mar 09 15:23:41 2016 +0000 +++ b/schema/featureset.json Mon Mar 14 13:04:01 2016 +0000 @@ -2,10 +2,12 @@ "id": "http://vamp-plugins.org/json/schema/featureset#", "$schema": "http://json-schema.org/draft-04/schema#", "description": "schema for a Vamp::Plugin::FeatureSet serialisation", - "type": "array", - "items": { - "type": "array", - "items": { "$ref": "http://vamp-plugins.org/json/schema/feature#" } + "type": "object", + "patternProperties": { + "^[0-9]+$": { + "type": "array", + "items": { "$ref": "http://vamp-plugins.org/json/schema/feature#" } + } }, "additionalProperties": false }