From 4b65fe711865b86ae13b9217ddce2d92e3cb6254 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 5 Jan 2023 22:27:02 +0100 Subject: [PATCH] Add missing OCPP 1.6 command payload JSON schemas MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .../ocpp/1.6/FirmwareStatusNotification.json | 23 +++++++ .../FirmwareStatusNotificationResponse.json | 8 +++ .../1.6/GetCompositeScheduleResponse.json | 65 +++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100755 src/assets/json-schemas/ocpp/1.6/FirmwareStatusNotification.json create mode 100755 src/assets/json-schemas/ocpp/1.6/FirmwareStatusNotificationResponse.json create mode 100755 src/assets/json-schemas/ocpp/1.6/GetCompositeScheduleResponse.json diff --git a/src/assets/json-schemas/ocpp/1.6/FirmwareStatusNotification.json b/src/assets/json-schemas/ocpp/1.6/FirmwareStatusNotification.json new file mode 100755 index 00000000..2d6abbe0 --- /dev/null +++ b/src/assets/json-schemas/ocpp/1.6/FirmwareStatusNotification.json @@ -0,0 +1,23 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "urn:OCPP:1.6:2019:12:FirmwareStatusNotificationRequest", + "title": "FirmwareStatusNotificationRequest", + "type": "object", + "properties": { + "status": { + "type": "string", + "additionalProperties": false, + "enum": [ + "Downloaded", + "DownloadFailed", + "Downloading", + "Idle", + "InstallationFailed", + "Installing", + "Installed" + ] + } + }, + "additionalProperties": false, + "required": ["status"] +} diff --git a/src/assets/json-schemas/ocpp/1.6/FirmwareStatusNotificationResponse.json b/src/assets/json-schemas/ocpp/1.6/FirmwareStatusNotificationResponse.json new file mode 100755 index 00000000..8e8012a5 --- /dev/null +++ b/src/assets/json-schemas/ocpp/1.6/FirmwareStatusNotificationResponse.json @@ -0,0 +1,8 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "urn:OCPP:1.6:2019:12:FirmwareStatusNotificationResponse", + "title": "FirmwareStatusNotificationResponse", + "type": "object", + "properties": {}, + "additionalProperties": false +} diff --git a/src/assets/json-schemas/ocpp/1.6/GetCompositeScheduleResponse.json b/src/assets/json-schemas/ocpp/1.6/GetCompositeScheduleResponse.json new file mode 100755 index 00000000..3e6415c6 --- /dev/null +++ b/src/assets/json-schemas/ocpp/1.6/GetCompositeScheduleResponse.json @@ -0,0 +1,65 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "urn:OCPP:1.6:2019:12:GetCompositeScheduleResponse", + "title": "GetCompositeScheduleResponse", + "type": "object", + "properties": { + "status": { + "type": "string", + "additionalProperties": false, + "enum": ["Accepted", "Rejected"] + }, + "connectorId": { + "type": "integer" + }, + "scheduleStart": { + "type": "string", + "format": "date-time" + }, + "chargingSchedule": { + "type": "object", + "properties": { + "duration": { + "type": "integer" + }, + "startSchedule": { + "type": "string", + "format": "date-time" + }, + "chargingRateUnit": { + "type": "string", + "additionalProperties": false, + "enum": ["A", "W"] + }, + "chargingSchedulePeriod": { + "type": "array", + "items": { + "type": "object", + "properties": { + "startPeriod": { + "type": "integer" + }, + "limit": { + "type": "number", + "multipleOf": 0.1 + }, + "numberPhases": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": ["startPeriod", "limit"] + } + }, + "minChargingRate": { + "type": "number", + "multipleOf": 0.1 + } + }, + "additionalProperties": false, + "required": ["chargingRateUnit", "chargingSchedulePeriod"] + } + }, + "additionalProperties": false, + "required": ["status"] +} -- 2.34.1