Fixes to OCA OCPP 2.0.1 JSON schemas
[e-mobility-charging-stations-simulator.git] / src / assets / json-schemas / ocpp / 2.0 / LogStatusNotificationRequest.json
CommitLineData
d270cc87 1{
98fc1389 2 "$schema": "http://json-schema.org/draft-07/schema#",
d270cc87 3 "$id": "urn:OCPP:Cp:2:2020:3:LogStatusNotificationRequest",
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 "UploadLogStatusEnumType": {
19 "description": "This contains the status of the log upload.\r\n",
20 "javaType": "UploadLogStatusEnum",
21 "type": "string",
22 "additionalProperties": false,
23 "enum": [
24 "BadMessage",
25 "Idle",
26 "NotSupportedOperation",
27 "PermissionDenied",
28 "Uploaded",
29 "UploadFailure",
30 "Uploading",
31 "AcceptedCanceled"
32 ]
33 }
34 },
35 "type": "object",
36 "additionalProperties": false,
37 "properties": {
38 "customData": {
39 "$ref": "#/definitions/CustomDataType"
40 },
41 "status": {
42 "$ref": "#/definitions/UploadLogStatusEnumType"
43 },
44 "requestId": {
45 "description": "The request id that was provided in GetLogRequest that started this log upload. This field is mandatory,\r\nunless the message was triggered by a TriggerMessageRequest AND there is no log upload ongoing.\r\n",
46 "type": "integer"
47 }
48 },
49 "required": ["status"]
50}