mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-08 11:22:13 +03:00
Revert Commodity name validation
This commit is contained in:
parent
fd496a0e29
commit
fa9f06b9c4
@ -39,6 +39,7 @@
|
|||||||
},
|
},
|
||||||
"commodities": {
|
"commodities": {
|
||||||
"type" : "array",
|
"type" : "array",
|
||||||
|
"minItems" : 1,
|
||||||
"items" : {
|
"items" : {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
@ -47,7 +48,8 @@
|
|||||||
"required" : [ "name", "buyPrice", "supply", "sellPrice", "demand" ],
|
"required" : [ "name", "buyPrice", "supply", "sellPrice", "demand" ],
|
||||||
"properties" : {
|
"properties" : {
|
||||||
"name": {
|
"name": {
|
||||||
"$ref": "#/definitions/commoditiesName"
|
"type" : "string",
|
||||||
|
"minLength" : 1
|
||||||
},
|
},
|
||||||
"buyPrice": {
|
"buyPrice": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
@ -81,26 +83,6 @@
|
|||||||
"definitions" : {
|
"definitions" : {
|
||||||
"levelType" : {
|
"levelType" : {
|
||||||
"enum": ["Low", "Med", "High"]
|
"enum": ["Low", "Med", "High"]
|
||||||
},
|
|
||||||
"commoditiesName" : {
|
|
||||||
"enum": [
|
|
||||||
"explosives", "hydrogen fuel", "mineral oil", "pesticides",
|
|
||||||
"clothing", "consumer technology", "domestic appliances",
|
|
||||||
"beer", "liquor", "narcotics", "tobacco", "wine",
|
|
||||||
"algae", "animal meat", "coffee", "fish", "food cartridges", "fruit and vegetables", "grain", "synthetic meat", "tea",
|
|
||||||
"polymers", "semiconductors", "superconductors",
|
|
||||||
"atmospheric processors", "crop harvesters", "marine equipment", "microbial furnaces", "mineral extractors", "power generators", "water purifiers",
|
|
||||||
"agri-medicines", "basic medicines", "combat stabilisers", "performance enhancers", "progenitor cells",
|
|
||||||
"aluminium", "beryllium", "cobalt", "copper", "gallium", "gold", "indium", "lithium", "palladium", "platinum", "silver", "tantalum", "titanium", "uranium",
|
|
||||||
"bauxite", "bertrandite", "coltan", "gallite", "indite", "lepidolite", "painite", "rutile", "uraninite",
|
|
||||||
"imperial slaves", "slaves",
|
|
||||||
"advanced catalysers", "animal monitors", "aquaponic systems", "auto-fabricators", "bioreducing lichen", "computer components", "h.e. suits",
|
|
||||||
"land enrichment systems", "resonating separators", "robotics", "terrain enrichment systems",
|
|
||||||
"leather", "natural fabrics", "synthetic fabrics",
|
|
||||||
"biowaste", "chemical waste", "scrap", "toxic waste",
|
|
||||||
"battle weapons", "non-lethal weapons", "personal weapons", "reactive armour"
|
|
||||||
],
|
|
||||||
"description": "Valid commodities names. Have to be lowercase (JSON schema doesn't propose insensitive validation)."
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user