Incoming requests payload validation with JSON schemas (#135)
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / 1.6 / OCPP16RequestService.ts
index aa0ca4f16bf5a7230364e9ceb2b025f8ebbf240b..8638ec0519ec8bfae0fa4c812cb72edf2158146b 100644 (file)
@@ -92,8 +92,8 @@ export default class OCPP16RequestService extends OCPPRequestService {
         // Sanity check
         if (!Array.isArray(commandParams?.meterValue)) {
           throw new OCPPError(
-            ErrorType.TYPERAINT_VIOLATION,
-            `${moduleName}.buildRequestPayload ${commandName}: Invalid array type for meterValue payload field`,
+            ErrorType.TYPE_CONSTRAINT_VIOLATION,
+            `${moduleName}.buildRequestPayload ${commandName}: Invalid array type for meterValue PDU field`,
             commandName,
             commandParams
           );