From: Jérôme Benoit Date: Thu, 12 Mar 2026 22:56:04 +0000 (+0100) Subject: fix(ocpp2): add missing outgoing schema entries for certificate commands X-Git-Tag: ocpp-server@v3.1.0~52 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=56b925b4968df16ae93d03ea5f9dba979a740627;p=e-mobility-charging-stations-simulator.git 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. --- 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'], ]