Fixes to OCPP command payload validation:
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 7 Jan 2023 16:12:43 +0000 (17:12 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 7 Jan 2023 16:12:43 +0000 (17:12 +0100)
commit4598878063d62259a6046a870dfa455b9d0027ca
tree71b67b1b526ea88fcf76d56ab87cdfdcfa686d2a
parentaef5c03ddd1489b52df3801284d704342d60a41c
Fixes to OCPP command payload validation:

+ Fix multipleOf precision
+ Convert to ISO 8601 string date object in payload before validation

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts
src/charging-station/ocpp/1.6/OCPP16RequestService.ts
src/charging-station/ocpp/1.6/OCPP16ResponseService.ts
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts
src/charging-station/ocpp/2.0/OCPP20RequestService.ts
src/charging-station/ocpp/2.0/OCPP20ResponseService.ts
src/charging-station/ocpp/OCPPIncomingRequestService.ts
src/charging-station/ocpp/OCPPRequestService.ts
src/charging-station/ocpp/OCPPResponseService.ts