Commit Graph

21 Commits

Author SHA1 Message Date
alexandercerutti
4a790d4161 Changed validation method in barcode; added function 'getValidated' to obtain validation content 2018-09-11 19:28:13 +02:00
alexandercerutti
04c379f9dd Changed way to set authenticationToken as required when webServiceURL is provided 2018-08-28 15:06:10 +02:00
alexandercerutti
d7c003149a Changed schema passing method to strings instead of constants;
Added schema name resolution function in schema.js and schemas list
2018-08-28 02:05:25 +02:00
alexandercerutti
5e2dd8a674 Added the left valid fields to field structure schema 2018-08-28 01:48:57 +02:00
alexandercerutti
8313d9e9a0 Removed __filterOptions and added filter function in schema to filter the valid options;
Added structure for nfc dictionary
2018-08-28 01:47:49 +02:00
alexandercerutti
854ceddb04 Changed types in schema for attributedValue and value to accept multiple types 2018-08-27 16:24:05 +02:00
alexandercerutti
b8e6eec016 Now isValid for schema validation, prints the message when debug is on;
Added dependency of debug
2018-08-27 14:10:30 +02:00
alexandercerutti
788245b140 Applied some changes for schema for a more correct validation 2018-08-27 14:00:02 +02:00
alexandercerutti
a874171e2c Removed basicStructure and boardingStructure in schema for passDict with common fields and transitType 2018-08-26 12:16:51 +02:00
alexandercerutti
04b5058f3a Added StringField class for transitType field;
Added parsing specific for transit inside _patch method that throws
Renamed fields.area in fieldsName
2018-08-26 12:15:11 +02:00
alexandercerutti
8136921b32 Fixed errors of barcodeDict and beaconDict in schema 2018-08-22 00:56:00 +02:00
alexandercerutti
ff33cc9d2e Added shouldOverwrite to Pass class options to overwrite or append to the existing ones, the properties in main buffer 2018-08-20 18:12:06 +02:00
alexandercerutti
8634d540b8 Added relevace() method to set beacons and locations; Added schemas for beaconsDict and locationsDict 2018-08-20 16:41:27 +02:00
alexandercerutti
ea8baec2b5 Changed _validateType to validate also the schema;
Edited schemas to comply with boardingPass requirements and the others pass types
2018-07-25 17:08:06 +02:00
alexandercerutti
7023009b2d Removed handlers 2018-07-24 00:07:04 +02:00
alexandercerutti
b1daa2d216 Converted certificates files names into paths; Removed dir property from the schema 2018-07-23 17:22:08 +02:00
alexandercerutti
ad55d3aeba Model is now represented as string containing path, not anymore an Object 2018-07-23 16:59:03 +02:00
alexandercerutti
fa2b656efd Edited schemas, moved outside the object all the schemas,
added schemas for structure and field
2018-07-23 11:19:02 +02:00
alexandercerutti
c05bd130c3 Added schemas for 'field' and 'structure' 2018-07-22 23:48:55 +02:00
alexandercerutti
b74da4ba93 Added Barcode(s) correctness check with backward and forward compatibility check;
Added constants in schema.js to keep all the schemas against which validate;
Added schema for barcodes;
Renamed "settingSchema" in "schema";
Renamed schemas "validate" function in "isValid";
Edited "isValid" fn to accept both the schema and the object;
Added more error-catching conditions;
2018-07-22 23:21:17 +02:00
alexandercerutti
5085d27fe6 Added a schema for input parameters to Pass class 2018-07-17 23:26:05 +02:00