]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor: replace string literals with OCPP enum constants
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 3 Apr 2026 15:09:52 +0000 (17:09 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 3 Apr 2026 15:09:52 +0000 (17:09 +0200)
commit4d1de41db4e2740a8a7e7de32670400f2d72dfd5
tree760c9f384d17a47d21ca2a1525cee48798c09cd8
parent157786a376b410b1a72e6e3fbd6319fbd7749e56
refactor: replace string literals with OCPP enum constants

Add AllowReset and MasterPassGroupId to OCPP20OptionalVariableName
enum. Replace all hardcoded OCPP variable name strings with enum
references in source and test files. Move EVSE Component section
comment to correct position.
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts
src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts
src/types/ocpp/2.0/Variables.ts
tests/charging-station/SharedLRUCache.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-MasterPass.test.ts
tests/charging-station/ocpp/2.0/OCPP20Integration.test.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-enforceMessageLimits.test.ts