diff --git a/schemas/commodity-v3.0.json b/schemas/commodity-v3.0.json index e829b81..f3c08fa 100644 --- a/schemas/commodity-v3.0.json +++ b/schemas/commodity-v3.0.json @@ -49,6 +49,7 @@ "commodities": { "type" : "array", "minItems" : 1, + "description" : "Commodities returned by the Companion API, with illegal commodities omitted", "items" : { "type" : "object", "additionalProperties" : false, @@ -57,7 +58,7 @@ "name": { "type" : "string", "minLength" : 1, - "description" : "Commodity name as returned by the Companion API, misspellings and all" + "description" : "Symbolic name as returned by the Companion API" }, "meanPrice": { "type" : "integer" @@ -93,6 +94,32 @@ } } } + }, + "economies": { + "type" : "array", + "items" : { + "type" : "object", + "additionalProperties" : false, + "required" : [ "name", "proportion" ], + "properties" : { + "name": { + "type" : "string", + "minLength" : 1, + "description" : "Economy type as returned by the Companion API" + }, + "proportion": { + "type" : "number" + } + } + } + }, + "prohibited": { + "type" : "array", + "uniqueItems" : true, + "items" : { + "type" : "string", + "minLength" : 1 + } } } }