]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(ocpp): keep StopTransactionRequest as 1.6 wire type, narrow reason via indexed...
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 19 Mar 2026 14:53:24 +0000 (15:53 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 19 Mar 2026 14:53:24 +0000 (15:53 +0100)
commitc6aac34df81f2bea43b465cb58e563015df4de70
tree6c37671e9f6acec2b7c8f4fd982b1a8a17371034
parent31852b7db6b9ac7165c563e5a684fd0c1f1f0857
fix(ocpp): keep StopTransactionRequest as 1.6 wire type, narrow reason via indexed access

Revert the Omit-based widening of StopTransactionRequest — it's a 1.6
wire protocol message and should not accept OCPP 2.0 reason values.
Use StopTransactionRequest['reason'] indexed access type for narrowing
in ChargingStation, avoiding any version-specific OCPP16* import.
src/charging-station/ChargingStation.ts