Debian Codegraph @

ocpp/v201/schemas/GetVariablesResponse.json

raw
1 {
2 "$schema": "http://json-schema.org/draft-06/schema#",
3 "comment": "OCPP 2.0.1 FINAL",
4 "definitions": {
5 "CustomDataType": {
6 "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.",
7 "javaType": "CustomData",
8 "type": "object",
9 "properties": {
10 "vendorId": {
11 "type": "string",
12 "maxLength": 255
13 }
14 },
15 "required": [
16 "vendorId"
17 ]
18 },
19 "AttributeEnumType": {
20 "description": "Attribute type for which value is requested. When absent, default Actual is assumed.\r\n",
21 "javaType": "AttributeEnum",
22 "type": "string",
23 "default": "Actual",
24 "additionalProperties": false,
25 "enum": [
26 "Actual",
27 "Target",
28 "MinSet",
29 "MaxSet"
30 ]
31 },
32 "GetVariableStatusEnumType": {
33 "description": "Result status of getting the variable.\r\n\r\n",
34 "javaType": "GetVariableStatusEnum",
35 "type": "string",
36 "additionalProperties": false,
37 "enum": [
38 "Accepted",
39 "Rejected",
40 "UnknownComponent",
41 "UnknownVariable",
42 "NotSupportedAttributeType"
43 ]
44 },
45 "ComponentType": {
46 "description": "A physical or logical component\r\n",
47 "javaType": "Component",
48 "type": "object",
49 "additionalProperties": false,
50 "properties": {
51 "customData": {
52 "$ref": "#/definitions/CustomDataType"
53 },
54 "evse": {
55 "$ref": "#/definitions/EVSEType"
56 },
57 "name": {
58 "description": "Name of the component. Name should be taken from the list of standardized component names whenever possible. Case Insensitive. strongly advised to use Camel Case.\r\n",
59 "type": "string",
60 "maxLength": 50
61 },
62 "instance": {
63 "description": "Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
64 "type": "string",
65 "maxLength": 50
66 }
67 },
68 "required": [
69 "name"
70 ]
71 },
72 "EVSEType": {
73 "description": "EVSE\r\nurn:x-oca:ocpp:uid:2:233123\r\nElectric Vehicle Supply Equipment\r\n",
74 "javaType": "EVSE",
75 "type": "object",
76 "additionalProperties": false,
77 "properties": {
78 "customData": {
79 "$ref": "#/definitions/CustomDataType"
80 },
81 "id": {
82 "description": "Identified_ Object. MRID. Numeric_ Identifier\r\nurn:x-enexis:ecdm:uid:1:569198\r\nEVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station.\r\n",
83 "type": "integer"
84 },
85 "connectorId": {
86 "description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n",
87 "type": "integer"
88 }
89 },
90 "required": [
91 "id"
92 ]
93 },
94 "GetVariableResultType": {
95 "description": "Class to hold results of GetVariables request.\r\n",
96 "javaType": "GetVariableResult",
97 "type": "object",
98 "additionalProperties": false,
99 "properties": {
100 "customData": {
101 "$ref": "#/definitions/CustomDataType"
102 },
103 "attributeStatusInfo": {
104 "$ref": "#/definitions/StatusInfoType"
105 },
106 "attributeStatus": {
107 "$ref": "#/definitions/GetVariableStatusEnumType"
108 },
109 "attributeType": {
110 "$ref": "#/definitions/AttributeEnumType"
111 },
112 "attributeValue": {
113 "description": "Value of requested attribute type of component-variable. This field can only be empty when the given status is NOT accepted.\r\n\r\nThe Configuration Variable <<configkey-reporting-value-size,ReportingValueSize>> can be used to limit GetVariableResult.attributeValue, VariableAttribute.value and EventData.actualValue. The max size of these values will always remain equal. \r\n\r\n",
114 "type": "string",
115 "maxLength": 2500
116 },
117 "component": {
118 "$ref": "#/definitions/ComponentType"
119 },
120 "variable": {
121 "$ref": "#/definitions/VariableType"
122 }
123 },
124 "required": [
125 "attributeStatus",
126 "component",
127 "variable"
128 ]
129 },
130 "StatusInfoType": {
131 "description": "Element providing more information about the status.\r\n",
132 "javaType": "StatusInfo",
133 "type": "object",
134 "additionalProperties": false,
135 "properties": {
136 "customData": {
137 "$ref": "#/definitions/CustomDataType"
138 },
139 "reasonCode": {
140 "description": "A predefined code for the reason why the status is returned in this response. The string is case-insensitive.\r\n",
141 "type": "string",
142 "maxLength": 20
143 },
144 "additionalInfo": {
145 "description": "Additional text to provide detailed information.\r\n",
146 "type": "string",
147 "maxLength": 512
148 }
149 },
150 "required": [
151 "reasonCode"
152 ]
153 },
154 "VariableType": {
155 "description": "Reference key to a component-variable.\r\n",
156 "javaType": "Variable",
157 "type": "object",
158 "additionalProperties": false,
159 "properties": {
160 "customData": {
161 "$ref": "#/definitions/CustomDataType"
162 },
163 "name": {
164 "description": "Name of the variable. Name should be taken from the list of standardized variable names whenever possible. Case Insensitive. strongly advised to use Camel Case.\r\n",
165 "type": "string",
166 "maxLength": 50
167 },
168 "instance": {
169 "description": "Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
170 "type": "string",
171 "maxLength": 50
172 }
173 },
174 "required": [
175 "name"
176 ]
177 }
178 },
179 "type": "object",
180 "additionalProperties": false,
181 "properties": {
182 "customData": {
183 "$ref": "#/definitions/CustomDataType"
184 },
185 "getVariableResult": {
186 "type": "array",
187 "additionalItems": false,
188 "items": {
189 "$ref": "#/definitions/GetVariableResultType"
190 },
191 "minItems": 1
192 }
193 },
194 "required": [
195 "getVariableResult"
196 ]
197 }