Fixes to OCA OCPP 2.0.1 JSON schemas
[e-mobility-charging-stations-simulator.git] / src / assets / json-schemas / ocpp / 2.0 / SetDisplayMessageResponse.json
1 {
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "$id": "urn:OCPP:Cp:2:2020:3:SetDisplayMessageResponse",
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 "DisplayMessageStatusEnumType": {
19 "description": "This indicates whether the Charging Station is able to display the message.\r\n",
20 "javaType": "DisplayMessageStatusEnum",
21 "type": "string",
22 "additionalProperties": false,
23 "enum": [
24 "Accepted",
25 "NotSupportedMessageFormat",
26 "Rejected",
27 "NotSupportedPriority",
28 "NotSupportedState",
29 "UnknownTransaction"
30 ]
31 },
32 "StatusInfoType": {
33 "description": "Element providing more information about the status.\r\n",
34 "javaType": "StatusInfo",
35 "type": "object",
36 "additionalProperties": false,
37 "properties": {
38 "customData": {
39 "$ref": "#/definitions/CustomDataType"
40 },
41 "reasonCode": {
42 "description": "A predefined code for the reason why the status is returned in this response. The string is case-insensitive.\r\n",
43 "type": "string",
44 "maxLength": 20
45 },
46 "additionalInfo": {
47 "description": "Additional text to provide detailed information.\r\n",
48 "type": "string",
49 "maxLength": 512
50 }
51 },
52 "required": ["reasonCode"]
53 }
54 },
55 "type": "object",
56 "additionalProperties": false,
57 "properties": {
58 "customData": {
59 "$ref": "#/definitions/CustomDataType"
60 },
61 "status": {
62 "$ref": "#/definitions/DisplayMessageStatusEnumType"
63 },
64 "statusInfo": {
65 "$ref": "#/definitions/StatusInfoType"
66 }
67 },
68 "required": ["status"]
69 }