From 01a4dcbb168f3fb8c52b81a6ff5473b4259f390f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 20 Aug 2022 16:15:20 +0200 Subject: [PATCH] AjvErrorsToErrorType -> ajvErrorsToErrorType MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ocpp/OCPPIncomingRequestService.ts | 2 +- src/charging-station/ocpp/OCPPRequestService.ts | 2 +- src/charging-station/ocpp/OCPPResponseService.ts | 2 +- src/charging-station/ocpp/OCPPServiceUtils.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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': -- 2.34.1