mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 22:25:24 +00:00
Changed schema passing method to strings instead of constants;
Added schema name resolution function in schema.js and schemas list
This commit is contained in:
@@ -25,7 +25,7 @@ class FieldsContainer {
|
||||
fields = fields[0];
|
||||
}
|
||||
|
||||
let validFields = fields.filter(f => typeof f === "object" && schema.isValid(f, schema.constants.field));
|
||||
let validFields = fields.filter(f => typeof f === "object" && schema.isValid(f, "field"));
|
||||
|
||||
this.fields.push(...validFields);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user