]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
fix(ocpp16): fix StopTransaction unit schema and ChargingSchedule field name
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 15 Mar 2026 18:53:54 +0000 (19:53 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 15 Mar 2026 18:53:54 +0000 (19:53 +0100)
- 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.

src/assets/json-schemas/ocpp/1.6/StopTransaction.json
src/types/ocpp/1.6/ChargingProfile.ts

index 461afb09d2fcf85ab0a81cc099163c93a9d6ae20..8c931d852bc0e3213d16e419d11d3dfc6d12d30b 100644 (file)
                     "V",
                     "K",
                     "Celcius",
+                    "Celsius",
                     "Fahrenheit",
                     "Percent"
                   ]
index 8a26dbd215b7308c49e41b589d987eb0df45166c..856d3d8bfa16227be3184d69daf91deae6d684a8 100644 (file)
@@ -38,7 +38,7 @@ export interface OCPP16ChargingSchedule extends JsonObject {
   chargingRateUnit: OCPP16ChargingRateUnitType
   chargingSchedulePeriod: OCPP16ChargingSchedulePeriod[]
   duration?: number
-  minChargeRate?: number
+  minChargingRate?: number
   startSchedule?: Date
 }