+ protected constructor(version: OCPPVersion) {
+ this.version = version;
+ switch (this.version) {
+ case OCPPVersion.VERSION_16:
+ this.ajv = new AjvDraft04();
+ break;
+ case OCPPVersion.VERSION_20:
+ case OCPPVersion.VERSION_201:
+ this.ajv = new Ajv();
+ break;
+ }