Removed basicStructure and boardingStructure in schema for passDict with common fields and transitType

This commit is contained in:
alexandercerutti
2018-08-26 12:16:51 +02:00
parent 4ea50c5d95
commit a874171e2c
2 changed files with 5 additions and 9 deletions

View File

@@ -423,7 +423,7 @@ class Pass {
let type = passTypes[index];
this.type = type;
return schema.isValid(passFile[type], schema.constants[(type === "boardingPass" ? "boarding" : "basic") + "Structure"]);
return schema.isValid(passFile[type], schema.constants.passDict);
} catch (e) {
return false;
}