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