Mercurial > hg > piper
changeset 216:72a3b8faba89 tip master
programParameters should not have a pattern enforced on its keys - a program name can be anything
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Wed, 08 Apr 2020 14:57:24 +0100 |
parents | 8923b382c055 |
children | |
files | json/schema/extractorstaticdata.json json/schema/loadresponse.json |
diffstat | 2 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/json/schema/extractorstaticdata.json Tue Apr 07 15:42:05 2020 +0100 +++ b/json/schema/extractorstaticdata.json Wed Apr 08 14:57:24 2020 +0100 @@ -50,7 +50,8 @@ "^[a-zA-Z0-9_-]+$": { "$ref": "http://vamp-plugins.org/piper/json/schema/staticoutputdescriptor#" } - } + }, + "additionalProperties": false } }, "required": [ "key", "basic", "version",
--- a/json/schema/loadresponse.json Tue Apr 07 15:42:05 2020 +0100 +++ b/json/schema/loadresponse.json Wed Apr 08 14:57:24 2020 +0100 @@ -15,15 +15,14 @@ }, "programParameters": { "type": "object", - "patternProperties": { - "^[a-zA-Z0-9_-]+$": { - "type": "object", - "patternProperties": { - "^[a-zA-Z0-9_-]+$": { - "type": "number" - } + "additionalProperties": { + "type": "object", + "patternProperties": { + "^[a-zA-Z0-9_-]+$": { + "type": "number" } - } + }, + "additionalProperties": false } } },