]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ocpp): harmonize buildRequestPayload switch structure across versions
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 18 Mar 2026 14:49:05 +0000 (15:49 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 18 Mar 2026 14:49:05 +0000 (15:49 +0100)
commitdb04e1514590d0a79fab7a7e4af34a9b48d86861
tree8c63c321a87bae5b8d88385156301ae54ddf514f
parent7b543d0cd334e0ddb350bc1311731f1732de4116
refactor(ocpp): harmonize buildRequestPayload switch structure across versions

Group passthrough cases into fall-through blocks in both OCPP 1.6 and
2.0 buildRequestPayload, giving both files a symmetric structure:
grouped passthroughs, heartbeat empty object, enrichment cases, default
error.
src/charging-station/ocpp/1.6/OCPP16RequestService.ts
src/charging-station/ocpp/2.0/OCPP20RequestService.ts