# HG changeset patch # User Chris Cannam # Date 1457445227 0 # Node ID 1bf1ea70e3864a3b1e94bdc5271326b7c6cd713d # Parent 61975048614ac6a4f3bf22cabc521d9fde80acc2 Move to schema subdir diff -r 61975048614a -r 1bf1ea70e386 basic.json --- a/basic.json Tue Mar 08 13:48:52 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/basic#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for the basic part of various Vamp descriptors", - "type": "object", - "properties": { - "identifier": { "type": "string" }, - "name": { "type": "string" }, - "description": { "type": "string" } - }, - "required": [ "identifier" ], - "additionalProperties": false -} diff -r 61975048614a -r 1bf1ea70e386 enums.json --- a/enums.json Tue Mar 08 13:48:52 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/enums#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for Vamp serialisation enums", - "definitions": { - "input_domain": { - "enum": [ "TimeDomain", "FrequencyDomain" ] - }, - "sample_type": { - "enum": [ "OneSamplePerStep", "FixedSampleRate", "VariableSampleRate" ] - }, - "adapter_flags": { - "enum": [ "AdaptNone", "AdaptInputDomain", "AdaptChannelCount", - "AdaptBufferSize", "AdaptAllSafe", "AdaptAll" ] - } - } -} diff -r 61975048614a -r 1bf1ea70e386 feature.json --- a/feature.json Tue Mar 08 13:48:52 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -{ - "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" - }, - "values": { - "type": "array", - "items": { "type": "number" } - }, - "b64values": { - "type": "string" - } - }, - "additionalProperties": false -} - - diff -r 61975048614a -r 1bf1ea70e386 featureset.json --- a/featureset.json Tue Mar 08 13:48:52 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -{ - "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#" } - }, - "additionalProperties": false -} diff -r 61975048614a -r 1bf1ea70e386 outputdescriptor.json --- a/outputdescriptor.json Tue Mar 08 13:48:52 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/outputdescriptor#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a Vamp::Plugin::OutputDescriptor serialisation", - "type": "object", - "properties": { - "basic": { - "$ref": "http://vamp-plugins.org/json/schema/basic#" - }, - "unit": { - "type": "string" - }, - "binCount": { - "type": "integer" - }, - "binNames": { - "type": "array", - "items": { "type": "string" } - }, - "extents": { - "type": "object", - "properties": { - "min": { "type": "number" }, - "max": { "type": "number" } - }, - "required": [ "min", "max" ], - "additionalProperties": false - }, - "quantizeStep": { - "type": "number" - }, - "sampleType": { - "$ref": "http://vamp-plugins.org/json/schema/enums#/definitions/sample_type" - }, - "sampleRate": { - "type": "number" - }, - "hasDuration": { - "type": "boolean" - } - }, - "required": [ "basic", "sampleType", "hasDuration" ], - "additionalProperties": false -} - diff -r 61975048614a -r 1bf1ea70e386 realtime.json --- a/realtime.json Tue Mar 08 13:48:52 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/realtime#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a Vamp::RealTime serialisation", - "type": "object", - "properties": { - "s": { "type": "integer" }, - "n": { "type": "integer" } - }, - "required": [ "s", "n" ], - "additionalProperties": false -} - diff -r 61975048614a -r 1bf1ea70e386 schema/basic.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/basic.json Tue Mar 08 13:53:47 2016 +0000 @@ -0,0 +1,13 @@ +{ + "id": "http://vamp-plugins.org/json/schema/basic#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for the basic part of various Vamp descriptors", + "type": "object", + "properties": { + "identifier": { "type": "string" }, + "name": { "type": "string" }, + "description": { "type": "string" } + }, + "required": [ "identifier" ], + "additionalProperties": false +} diff -r 61975048614a -r 1bf1ea70e386 schema/enums.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/enums.json Tue Mar 08 13:53:47 2016 +0000 @@ -0,0 +1,17 @@ +{ + "id": "http://vamp-plugins.org/json/schema/enums#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for Vamp serialisation enums", + "definitions": { + "input_domain": { + "enum": [ "TimeDomain", "FrequencyDomain" ] + }, + "sample_type": { + "enum": [ "OneSamplePerStep", "FixedSampleRate", "VariableSampleRate" ] + }, + "adapter_flags": { + "enum": [ "AdaptNone", "AdaptInputDomain", "AdaptChannelCount", + "AdaptBufferSize", "AdaptAllSafe", "AdaptAll" ] + } + } +} diff -r 61975048614a -r 1bf1ea70e386 schema/feature.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/feature.json Tue Mar 08 13:53:47 2016 +0000 @@ -0,0 +1,27 @@ +{ + "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" + }, + "values": { + "type": "array", + "items": { "type": "number" } + }, + "b64values": { + "type": "string" + } + }, + "additionalProperties": false +} + + diff -r 61975048614a -r 1bf1ea70e386 schema/featureset.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/featureset.json Tue Mar 08 13:53:47 2016 +0000 @@ -0,0 +1,11 @@ +{ + "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#" } + }, + "additionalProperties": false +} diff -r 61975048614a -r 1bf1ea70e386 schema/outputdescriptor.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/outputdescriptor.json Tue Mar 08 13:53:47 2016 +0000 @@ -0,0 +1,45 @@ +{ + "id": "http://vamp-plugins.org/json/schema/outputdescriptor#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a Vamp::Plugin::OutputDescriptor serialisation", + "type": "object", + "properties": { + "basic": { + "$ref": "http://vamp-plugins.org/json/schema/basic#" + }, + "unit": { + "type": "string" + }, + "binCount": { + "type": "integer" + }, + "binNames": { + "type": "array", + "items": { "type": "string" } + }, + "extents": { + "type": "object", + "properties": { + "min": { "type": "number" }, + "max": { "type": "number" } + }, + "required": [ "min", "max" ], + "additionalProperties": false + }, + "quantizeStep": { + "type": "number" + }, + "sampleType": { + "$ref": "http://vamp-plugins.org/json/schema/enums#/definitions/sample_type" + }, + "sampleRate": { + "type": "number" + }, + "hasDuration": { + "type": "boolean" + } + }, + "required": [ "basic", "sampleType", "hasDuration" ], + "additionalProperties": false +} + diff -r 61975048614a -r 1bf1ea70e386 schema/realtime.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/realtime.json Tue Mar 08 13:53:47 2016 +0000 @@ -0,0 +1,13 @@ +{ + "id": "http://vamp-plugins.org/json/schema/realtime#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a Vamp::RealTime serialisation", + "type": "object", + "properties": { + "s": { "type": "integer" }, + "n": { "type": "integer" } + }, + "required": [ "s", "n" ], + "additionalProperties": false +} + diff -r 61975048614a -r 1bf1ea70e386 schema/valueextents.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/valueextents.json Tue Mar 08 13:53:47 2016 +0000 @@ -0,0 +1,13 @@ +{ + "id": "http://vamp-plugins.org/json/schema/valueextents#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for the extents structure in various Vamp descriptors", + "type": "object", + "properties": { + "min": { "type": "number" }, + "max": { "type": "number" } + }, + "required": [ "min", "max" ], + "additionalProperties": false +} + diff -r 61975048614a -r 1bf1ea70e386 valueextents.json --- a/valueextents.json Tue Mar 08 13:48:52 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/valueextents#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for the extents structure in various Vamp descriptors", - "type": "object", - "properties": { - "min": { "type": "number" }, - "max": { "type": "number" } - }, - "required": [ "min", "max" ], - "additionalProperties": false -} -