mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Removed basicStructure and boardingStructure in schema for passDict with common fields and transitType
This commit is contained in:
2
index.js
2
index.js
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user