Merge pull request #68 from Marginal/master

Add "economies" and "prohibited" properties
This commit is contained in:
AnthorNet 2017-09-19 09:46:22 +02:00 committed by GitHub
commit d1db9a8e3e

View File

@ -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
}
}
}
}