From 56b925b4968df16ae93d03ea5f9dba979a740627 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 12 Mar 2026 23:56:04 +0100 Subject: [PATCH] fix(ocpp2): add missing outgoing schema entries for certificate commands Register Get15118EVCertificate, GetCertificateStatus, and SignCertificate in OCPP20ServiceUtils.outgoingRequestSchemaNames to ensure JSON schema validation for these certificate management commands. --- src/charging-station/ocpp/2.0/OCPP20ServiceUtils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/charging-station/ocpp/2.0/OCPP20ServiceUtils.ts b/src/charging-station/ocpp/2.0/OCPP20ServiceUtils.ts index 3bcc0909..5732bfe1 100644 --- a/src/charging-station/ocpp/2.0/OCPP20ServiceUtils.ts +++ b/src/charging-station/ocpp/2.0/OCPP20ServiceUtils.ts @@ -65,12 +65,15 @@ export class OCPP20ServiceUtils extends OCPPServiceUtils { private static readonly outgoingRequestSchemaNames: readonly [OCPP20RequestCommand, string][] = [ [OCPP20RequestCommand.BOOT_NOTIFICATION, 'BootNotification'], [OCPP20RequestCommand.FIRMWARE_STATUS_NOTIFICATION, 'FirmwareStatusNotification'], + [OCPP20RequestCommand.GET_15118_EV_CERTIFICATE, 'Get15118EVCertificate'], + [OCPP20RequestCommand.GET_CERTIFICATE_STATUS, 'GetCertificateStatus'], [OCPP20RequestCommand.HEARTBEAT, 'Heartbeat'], [OCPP20RequestCommand.LOG_STATUS_NOTIFICATION, 'LogStatusNotification'], [OCPP20RequestCommand.METER_VALUES, 'MeterValues'], [OCPP20RequestCommand.NOTIFY_CUSTOMER_INFORMATION, 'NotifyCustomerInformation'], [OCPP20RequestCommand.NOTIFY_REPORT, 'NotifyReport'], [OCPP20RequestCommand.SECURITY_EVENT_NOTIFICATION, 'SecurityEventNotification'], + [OCPP20RequestCommand.SIGN_CERTIFICATE, 'SignCertificate'], [OCPP20RequestCommand.STATUS_NOTIFICATION, 'StatusNotification'], [OCPP20RequestCommand.TRANSACTION_EVENT, 'TransactionEvent'], ] -- 2.53.0