ce9dfddff30bfcd18a3ed0c836b1ce554fdd2a6f
[e-mobility-charging-stations-simulator.git] / src / assets / json-schemas / ocpp / 2.0 / ClearVariableMonitoringResponse.json
1 {
2 "$schema": "http://json-schema.org/draft-06/schema#",
3 "$id": "urn:OCPP:Cp:2:2020:3:ClearVariableMonitoringResponse",
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 "ClearMonitoringStatusEnumType": {
19 "description": "Result of the clear request for this monitor, identified by its Id.\r\n\r\n",
20 "javaType": "ClearMonitoringStatusEnum",
21 "type": "string",
22 "additionalProperties": false,
23 "enum": ["Accepted", "Rejected", "NotFound"]
24 },
25 "ClearMonitoringResultType": {
26 "javaType": "ClearMonitoringResult",
27 "type": "object",
28 "additionalProperties": false,
29 "properties": {
30 "customData": {
31 "$ref": "#/definitions/CustomDataType"
32 },
33 "status": {
34 "$ref": "#/definitions/ClearMonitoringStatusEnumType"
35 },
36 "id": {
37 "description": "Id of the monitor of which a clear was requested.\r\n\r\n",
38 "type": "integer"
39 },
40 "statusInfo": {
41 "$ref": "#/definitions/StatusInfoType"
42 }
43 },
44 "required": ["status", "id"]
45 },
46 "StatusInfoType": {
47 "description": "Element providing more information about the status.\r\n",
48 "javaType": "StatusInfo",
49 "type": "object",
50 "additionalProperties": false,
51 "properties": {
52 "customData": {
53 "$ref": "#/definitions/CustomDataType"
54 },
55 "reasonCode": {
56 "description": "A predefined code for the reason why the status is returned in this response. The string is case-insensitive.\r\n",
57 "type": "string",
58 "maxLength": 20
59 },
60 "additionalInfo": {
61 "description": "Additional text to provide detailed information.\r\n",
62 "type": "string",
63 "maxLength": 512
64 }
65 },
66 "required": ["reasonCode"]
67 }
68 },
69 "type": "object",
70 "additionalProperties": false,
71 "properties": {
72 "customData": {
73 "$ref": "#/definitions/CustomDataType"
74 },
75 "clearMonitoringResult": {
76 "type": "array",
77 "additionalItems": false,
78 "items": {
79 "$ref": "#/definitions/ClearMonitoringResultType"
80 },
81 "minItems": 1
82 }
83 },
84 "required": ["clearMonitoringResult"]
85 }