Mercurial > hg > piper
changeset 55:0bbfbfbb2413
Types for enums
author | Chris Cannam |
---|---|
date | Wed, 21 Sep 2016 14:07:50 +0100 |
parents | 9c1119f9160d |
children | d1259ec8121b |
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" ] }