- multipleOfPrecision: 2,
- });
- ajvFormats(this.ajv);
- this.responseHandler = this.responseHandler.bind(this) as (
- chargingStation: ChargingStation,
- commandName: RequestCommand,
- payload: JsonType,
- requestPayload: JsonType
- ) => Promise<void>;
- this.validateResponsePayload = this.validateResponsePayload.bind(this) as <T extends JsonType>(
- chargingStation: ChargingStation,
- commandName: RequestCommand,
- schema: JSONSchemaType<T>,
- payload: T
- ) => boolean;
+ multipleOfPrecision: 2
+ })
+ ajvFormats(this.ajv)
+ this.ajvIncomingRequest = new Ajv({
+ keywords: ['javaType'],
+ multipleOfPrecision: 2
+ })
+ ajvFormats(this.ajvIncomingRequest)
+ this.responseHandler = this.responseHandler.bind(this)
+ this.validateResponsePayload = this.validateResponsePayload.bind(this)