From: Jérôme Benoit Date: Sat, 20 Aug 2022 14:15:20 +0000 (+0200) Subject: AjvErrorsToErrorType -> ajvErrorsToErrorType X-Git-Tag: v1.1.66~33 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=01a4dcbb168f3fb8c52b81a6ff5473b4259f390f;p=e-mobility-charging-stations-simulator.git AjvErrorsToErrorType -> ajvErrorsToErrorType Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/OCPPIncomingRequestService.ts b/src/charging-station/ocpp/OCPPIncomingRequestService.ts index 5760e1d1..5be2629a 100644 --- a/src/charging-station/ocpp/OCPPIncomingRequestService.ts +++ b/src/charging-station/ocpp/OCPPIncomingRequestService.ts @@ -68,7 +68,7 @@ export default abstract class OCPPIncomingRequestService { validate.errors ); throw new OCPPError( - OCPPServiceUtils.AjvErrorsToErrorType(validate.errors), + OCPPServiceUtils.ajvErrorsToErrorType(validate.errors), 'Incoming request PDU is invalid', commandName, JSON.stringify(validate.errors, null, 2) diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index de10f546..1ae25a65 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -133,7 +133,7 @@ export default abstract class OCPPRequestService { validate.errors ); throw new OCPPError( - OCPPServiceUtils.AjvErrorsToErrorType(validate.errors), + OCPPServiceUtils.ajvErrorsToErrorType(validate.errors), 'Request PDU is invalid', commandName, JSON.stringify(validate.errors, null, 2) diff --git a/src/charging-station/ocpp/OCPPResponseService.ts b/src/charging-station/ocpp/OCPPResponseService.ts index c91066c4..eb49b752 100644 --- a/src/charging-station/ocpp/OCPPResponseService.ts +++ b/src/charging-station/ocpp/OCPPResponseService.ts @@ -45,7 +45,7 @@ export default abstract class OCPPResponseService { validate.errors ); throw new OCPPError( - OCPPServiceUtils.AjvErrorsToErrorType(validate.errors), + OCPPServiceUtils.ajvErrorsToErrorType(validate.errors), 'Response PDU is invalid', commandName, JSON.stringify(validate.errors, null, 2) diff --git a/src/charging-station/ocpp/OCPPServiceUtils.ts b/src/charging-station/ocpp/OCPPServiceUtils.ts index 25d6b1e7..39d738af 100644 --- a/src/charging-station/ocpp/OCPPServiceUtils.ts +++ b/src/charging-station/ocpp/OCPPServiceUtils.ts @@ -7,7 +7,7 @@ export class OCPPServiceUtils { // This is intentional } - public static AjvErrorsToErrorType(errors: ErrorObject[]): ErrorType { + public static ajvErrorsToErrorType(errors: ErrorObject[]): ErrorType { for (const error of errors as DefinedError[]) { switch (error.keyword) { case 'type':