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)
validate.errors
);
throw new OCPPError(
- OCPPServiceUtils.AjvErrorsToErrorType(validate.errors),
+ OCPPServiceUtils.ajvErrorsToErrorType(validate.errors),
'Request PDU is invalid',
commandName,
JSON.stringify(validate.errors, null, 2)
validate.errors
);
throw new OCPPError(
- OCPPServiceUtils.AjvErrorsToErrorType(validate.errors),
+ OCPPServiceUtils.ajvErrorsToErrorType(validate.errors),
'Response PDU is invalid',
commandName,
JSON.stringify(validate.errors, null, 2)
// 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':