From: Jérôme Benoit Date: Sun, 15 Mar 2026 18:53:54 +0000 (+0100) Subject: fix(ocpp16): fix StopTransaction unit schema and ChargingSchedule field name X-Git-Tag: ocpp-server@v3.1.0~16 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1ca41bfe1c955d773b0b0721b43193afc6bea222;p=e-mobility-charging-stations-simulator.git fix(ocpp16): fix StopTransaction unit schema and ChargingSchedule field name - Add missing 'Celsius' to StopTransaction.json unit enum (M-2/SP-1) The runtime schema had only 'Celcius' (legacy typo) while the OCA official schema has both. TS enum produces 'Celsius' which was rejected by AJV when ocppStrictCompliance was enabled. - Rename minChargeRate to minChargingRate in OCPP16ChargingSchedule (RST-01) Field name typo caused JSON serialization mismatch with spec §7.13 and schema 'minChargingRate', breaking SetChargingProfile and GetCompositeSchedule payloads. --- diff --git a/src/assets/json-schemas/ocpp/1.6/StopTransaction.json b/src/assets/json-schemas/ocpp/1.6/StopTransaction.json index 461afb09..8c931d85 100644 --- a/src/assets/json-schemas/ocpp/1.6/StopTransaction.json +++ b/src/assets/json-schemas/ocpp/1.6/StopTransaction.json @@ -120,6 +120,7 @@ "V", "K", "Celcius", + "Celsius", "Fahrenheit", "Percent" ] diff --git a/src/types/ocpp/1.6/ChargingProfile.ts b/src/types/ocpp/1.6/ChargingProfile.ts index 8a26dbd2..856d3d8b 100644 --- a/src/types/ocpp/1.6/ChargingProfile.ts +++ b/src/types/ocpp/1.6/ChargingProfile.ts @@ -38,7 +38,7 @@ export interface OCPP16ChargingSchedule extends JsonObject { chargingRateUnit: OCPP16ChargingRateUnitType chargingSchedulePeriod: OCPP16ChargingSchedulePeriod[] duration?: number - minChargeRate?: number + minChargingRate?: number startSchedule?: Date }