changeset 141:05741ca642b1

Types for enums
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 21 Sep 2016 14:07:50 +0100
parents 4c99014f5d0c
children b7cae01df4fd
files schema/enums.json
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/schema/enums.json	Wed Sep 21 09:33:45 2016 +0100
+++ b/schema/enums.json	Wed Sep 21 14:07:50 2016 +0100
@@ -4,12 +4,15 @@
     "description": "schema for Vamp serialisation enums",
     "definitions": {
 	"input_domain": {
+	    "type": "string",
 	    "enum": [ "TimeDomain", "FrequencyDomain" ]
 	},
 	"sample_type": {
+	    "type": "string",
 	    "enum": [ "OneSamplePerStep", "FixedSampleRate", "VariableSampleRate" ]
 	},
 	"adapter_flags": {
+	    "type": "string",
 	    "enum": [ "AdaptNone", "AdaptInputDomain", "AdaptChannelCount",
 		      "AdaptBufferSize", "AdaptAllSafe", "AdaptAll" ]
 	}