# HG changeset patch # User Chris Cannam # Date 1474971559 -3600 # Node ID b521ca16c51dd0b5d0333bd08be456ab9e30e1cf # Parent 78c5a6d3a1b63485f01421a92d6dae89c409a070 Use anyOf to supply the content object type diff -r 78c5a6d3a1b6 -r b521ca16c51d schema/request.json --- a/schema/request.json Fri Sep 23 14:19:32 2016 +0100 +++ b/schema/request.json Tue Sep 27 11:19:19 2016 +0100 @@ -8,7 +8,12 @@ "type": "string" }, "content": { - "type": "object" + "anyOf": [ + { "$ref": "http://vamp-plugins.org/json/schema/loadrequest#" }, + { "$ref": "http://vamp-plugins.org/json/schema/configurationrequest#" }, + { "$ref": "http://vamp-plugins.org/json/schema/processrequest#" }, + { "$ref": "http://vamp-plugins.org/json/schema/finishrequest#" } + ] } }, "required": [ "type" ], diff -r 78c5a6d3a1b6 -r b521ca16c51d schema/response.json --- a/schema/response.json Fri Sep 23 14:19:32 2016 +0100 +++ b/schema/response.json Tue Sep 27 11:19:19 2016 +0100 @@ -14,7 +14,13 @@ "type": "string" }, "content": { - "type": "object" + "anyOf": [ + { "$ref": "http://vamp-plugins.org/json/schema/listresponse#" }, + { "$ref": "http://vamp-plugins.org/json/schema/loadresponse#" }, + { "$ref": "http://vamp-plugins.org/json/schema/configurationresponse#" }, + { "$ref": "http://vamp-plugins.org/json/schema/processresponse#" }, + { "$ref": "http://vamp-plugins.org/json/schema/finishresponse#" } + ] } }, "required": [ "type", "success" ],