Made outfitting schema tolerant to all-lowercase data coming from outfitting.json

This commit is contained in:
DarkWanderer 2018-07-14 17:08:09 +03:00
parent 3c01bdc402
commit f10fe2e0bf
2 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@
"items" : {
"type" : "string",
"minLength" : 1,
"pattern" : "(^Hpt_|^Int_|_Armour_)",
"pattern" : "(^Hpt_|^hpt_|^Int_|^int_|_Armour_|_armour_)",
"description" : "Module symbolic name. e.g. Hpt_ChaffLauncher_Tiny, Int_Engine_Size3_Class5_Fast, Independant_Trader_Armour_Grade1, etc. Modules that depend on the Cmdr's purchases (e.g. bobbleheads, paintjobs) or rank (e.g. decals and PowerPlay faction-specific modules) should be omitted."
}
}

View File

@ -51,8 +51,8 @@ class _Settings(object):
"https://eddn.edcd.io/schemas/shipyard/2" : "schemas/shipyard-v2.0.json",
"https://eddn.edcd.io/schemas/shipyard/2/test" : "schemas/shipyard-v2.0.json",
"https://eddn.edcd.io/schemas/outfitting/2" : "schemas/outfitting-v2.0.json",
"https://eddn.edcd.io/schemas/outfitting/2/test" : "schemas/outfitting-v2.0.json",
"https://eddn.edcd.io/schemas/outfitting/2" : "schemas/outfitting-v2.1.json",
"https://eddn.edcd.io/schemas/outfitting/2/test" : "schemas/outfitting-v2.1.json",
"https://eddn.edcd.io/schemas/blackmarket/1" : "schemas/blackmarket-v1.0.json",
"https://eddn.edcd.io/schemas/blackmarket/1/test" : "schemas/blackmarket-v1.0.json",