]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(ocpp): warn on OCPP 1.6 keys in template only, silent remap for internal code
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 31 Mar 2026 22:03:59 +0000 (00:03 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 31 Mar 2026 22:03:59 +0000 (00:03 +0200)
commita428896fece63ca81fb65377715296357630216a
tree1065c830edb9825b5975b95fa4fb60c685a46b43
parent8ba6019ab5e55f97eafd07ec2f4d7422eee1a076
fix(ocpp): warn on OCPP 1.6 keys in template only, silent remap for internal code

Simplify OCPP2_PARAMETER_KEY_MAP to a plain Map<string, string> and
make resolveKey always silent. Move warning to a one-shot template
validation pass (warnOnOCPP16TemplateKeys) called after template
loading, before init defaults. Warnings now only fire when the
operator uses OCPP 1.6 key names in an OCPP 2.0 station template,
not when internal cross-version code resolves keys.
src/charging-station/ChargingStation.ts
src/charging-station/ConfigurationKeyUtils.ts