Commit | Line | Data |
---|---|---|
d270cc87 JB |
1 | { |
2 | "$schema": "http://json-schema.org/draft-06/schema#", | |
3 | "$id": "urn:OCPP:Cp:2:2020:3:UpdateFirmwareRequest", | |
4 | "comment": "OCPP 2.0.1 FINAL", | |
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 | "FirmwareType": { | |
19 | "description": "Firmware\r\nurn:x-enexis:ecdm:uid:2:233291\r\nRepresents a copy of the firmware that can be loaded/updated on the Charging Station.\r\n", | |
20 | "javaType": "Firmware", | |
21 | "type": "object", | |
22 | "additionalProperties": false, | |
23 | "properties": { | |
24 | "customData": { | |
25 | "$ref": "#/definitions/CustomDataType" | |
26 | }, | |
27 | "location": { | |
28 | "description": "Firmware. Location. URI\r\nurn:x-enexis:ecdm:uid:1:569460\r\nURI defining the origin of the firmware.\r\n", | |
29 | "type": "string", | |
30 | "maxLength": 512 | |
31 | }, | |
32 | "retrieveDateTime": { | |
33 | "description": "Firmware. Retrieve. Date_ Time\r\nurn:x-enexis:ecdm:uid:1:569461\r\nDate and time at which the firmware shall be retrieved.\r\n", | |
34 | "type": "string", | |
35 | "format": "date-time" | |
36 | }, | |
37 | "installDateTime": { | |
38 | "description": "Firmware. Install. Date_ Time\r\nurn:x-enexis:ecdm:uid:1:569462\r\nDate and time at which the firmware shall be installed.\r\n", | |
39 | "type": "string", | |
40 | "format": "date-time" | |
41 | }, | |
42 | "signingCertificate": { | |
43 | "description": "Certificate with which the firmware was signed.\r\nPEM encoded X.509 certificate.\r\n", | |
44 | "type": "string", | |
45 | "maxLength": 5500 | |
46 | }, | |
47 | "signature": { | |
48 | "description": "Firmware. Signature. Signature\r\nurn:x-enexis:ecdm:uid:1:569464\r\nBase64 encoded firmware signature.\r\n", | |
49 | "type": "string", | |
50 | "maxLength": 800 | |
51 | } | |
52 | }, | |
53 | "required": ["location", "retrieveDateTime"] | |
54 | } | |
55 | }, | |
56 | "type": "object", | |
57 | "additionalProperties": false, | |
58 | "properties": { | |
59 | "customData": { | |
60 | "$ref": "#/definitions/CustomDataType" | |
61 | }, | |
62 | "retries": { | |
63 | "description": "This specifies how many times Charging Station must try to download the firmware before giving up. If this field is not present, it is left to Charging Station to decide how many times it wants to retry.\r\n", | |
64 | "type": "integer" | |
65 | }, | |
66 | "retryInterval": { | |
67 | "description": "The interval in seconds after which a retry may be attempted. If this field is not present, it is left to Charging Station to decide how long to wait between attempts.\r\n", | |
68 | "type": "integer" | |
69 | }, | |
70 | "requestId": { | |
71 | "description": "The Id of this request\r\n", | |
72 | "type": "integer" | |
73 | }, | |
74 | "firmware": { | |
75 | "$ref": "#/definitions/FirmwareType" | |
76 | } | |
77 | }, | |
78 | "required": ["requestId", "firmware"] | |
79 | } |