| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$id": "urn:OCPP:Cp:2:2020:3:GetLogResponse", |
| 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 | "LogStatusEnumType": { |
| 19 | "description": "This field indicates whether the Charging Station was able to accept the request.\r\n", |
| 20 | "javaType": "LogStatusEnum", |
| 21 | "type": "string", |
| 22 | "additionalProperties": false, |
| 23 | "enum": ["Accepted", "Rejected", "AcceptedCanceled"] |
| 24 | }, |
| 25 | "StatusInfoType": { |
| 26 | "description": "Element providing more information about the status.\r\n", |
| 27 | "javaType": "StatusInfo", |
| 28 | "type": "object", |
| 29 | "additionalProperties": false, |
| 30 | "properties": { |
| 31 | "customData": { |
| 32 | "$ref": "#/definitions/CustomDataType" |
| 33 | }, |
| 34 | "reasonCode": { |
| 35 | "description": "A predefined code for the reason why the status is returned in this response. The string is case-insensitive.\r\n", |
| 36 | "type": "string", |
| 37 | "maxLength": 20 |
| 38 | }, |
| 39 | "additionalInfo": { |
| 40 | "description": "Additional text to provide detailed information.\r\n", |
| 41 | "type": "string", |
| 42 | "maxLength": 512 |
| 43 | } |
| 44 | }, |
| 45 | "required": ["reasonCode"] |
| 46 | } |
| 47 | }, |
| 48 | "type": "object", |
| 49 | "additionalProperties": false, |
| 50 | "properties": { |
| 51 | "customData": { |
| 52 | "$ref": "#/definitions/CustomDataType" |
| 53 | }, |
| 54 | "status": { |
| 55 | "$ref": "#/definitions/LogStatusEnumType" |
| 56 | }, |
| 57 | "statusInfo": { |
| 58 | "$ref": "#/definitions/StatusInfoType" |
| 59 | }, |
| 60 | "filename": { |
| 61 | "description": "This contains the name of the log file that will be uploaded. This field is not present when no logging information is available.\r\n", |
| 62 | "type": "string", |
| 63 | "maxLength": 255 |
| 64 | } |
| 65 | }, |
| 66 | "required": ["status"] |
| 67 | } |