]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
fix(ocpp2): add missing outgoing schema entries for certificate commands
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 12 Mar 2026 22:56:04 +0000 (23:56 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 12 Mar 2026 22:56:04 +0000 (23:56 +0100)
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

index 3bcc0909f57cecb783af8d0ca15fdfecc059a98f..5732bfe1ccf1a4054f338000920ae59905f25c92 100644 (file)
@@ -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'],
   ]