# HG changeset patch # User Chris Cannam # Date 1474971559 -3600 # Node ID 60c53d43a32b32d72e920b13d668e186d79a8ed3 # Parent 8f72b4c0c71cc433b01c6d75c0313c2fb5899c7f Use anyOf to supply the content object type diff -r 8f72b4c0c71c -r 60c53d43a32b 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 8f72b4c0c71c -r 60c53d43a32b 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" ],