Fixes to OCA OCPP 2.0.1 JSON schemas
[e-mobility-charging-stations-simulator.git] / src / assets / json-schemas / ocpp / 2.0 / PublishFirmwareStatusNotificationRequest.json
CommitLineData
d270cc87 1{
98fc1389 2 "$schema": "http://json-schema.org/draft-07/schema#",
d270cc87 3 "$id": "urn:OCPP:Cp:2:2020:3:PublishFirmwareStatusNotificationRequest",
98fc1389 4 "$comment": "OCPP 2.0.1 FINAL",
d270cc87
JB
5 "definitions": {
6 "CustomDataType": {
7 "description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
8 "javaType": "CustomData",
9 "type": "object",
10 "properties": {
11 "vendorId": {
12 "type": "string",
13 "maxLength": 255
14 }
15 },
16 "required": ["vendorId"]
17 },
18 "PublishFirmwareStatusEnumType": {
19 "description": "This contains the progress status of the publishfirmware\r\ninstallation.\r\n",
20 "javaType": "PublishFirmwareStatusEnum",
21 "type": "string",
22 "additionalProperties": false,
23 "enum": [
24 "Idle",
25 "DownloadScheduled",
26 "Downloading",
27 "Downloaded",
28 "Published",
29 "DownloadFailed",
30 "DownloadPaused",
31 "InvalidChecksum",
32 "ChecksumVerified",
33 "PublishFailed"
34 ]
35 }
36 },
37 "type": "object",
38 "additionalProperties": false,
39 "properties": {
40 "customData": {
41 "$ref": "#/definitions/CustomDataType"
42 },
43 "status": {
44 "$ref": "#/definitions/PublishFirmwareStatusEnumType"
45 },
46 "location": {
47 "description": "Required if status is Published. Can be multiple URI’s, if the Local Controller supports e.g. HTTP, HTTPS, and FTP.\r\n",
48 "type": "array",
49 "additionalItems": false,
50 "items": {
51 "type": "string",
52 "maxLength": 512
53 },
54 "minItems": 1
55 },
56 "requestId": {
57 "description": "The request id that was\r\nprovided in the\r\nPublishFirmwareRequest which\r\ntriggered this action.\r\n",
58 "type": "integer"
59 }
60 },
61 "required": ["status"]
62}