Debian Codegraph @

ocpp/v201/schemas/SetVariablesResponse.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": "Type of attribute: Actual, Target, MinSet, MaxSet. Default is Actual when omitted.\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 "SetVariableStatusEnumType": {
33 "description": "Result status of setting the variable.\r\n",
34 "javaType": "SetVariableStatusEnum",
35 "type": "string",
36 "additionalProperties": false,
37 "enum": [
38 "Accepted",
39 "Rejected",
40 "UnknownComponent",
41 "UnknownVariable",
42 "NotSupportedAttributeType",
43 "RebootRequired"
44 ]
45 },
46 "ComponentType": {
47 "description": "A physical or logical component\r\n",
48 "javaType": "Component",
49 "type": "object",
50 "additionalProperties": false,
51 "properties": {
52 "customData": {
53 "$ref": "#/definitions/CustomDataType"
54 },
55 "evse": {
56 "$ref": "#/definitions/EVSEType"
57 },
58 "name": {
59 "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",
60 "type": "string",
61 "maxLength": 50
62 },
63 "instance": {
64 "description": "Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
65 "type": "string",
66 "maxLength": 50
67 }
68 },
69 "required": [
70 "name"
71 ]
72 },
73 "EVSEType": {
74 "description": "EVSE\r\nurn:x-oca:ocpp:uid:2:233123\r\nElectric Vehicle Supply Equipment\r\n",
75 "javaType": "EVSE",
76 "type": "object",
77 "additionalProperties": false,
78 "properties": {
79 "customData": {
80 "$ref": "#/definitions/CustomDataType"
81 },
82 "id": {
83 "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",
84 "type": "integer"
85 },
86 "connectorId": {
87 "description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n",
88 "type": "integer"
89 }
90 },
91 "required": [
92 "id"
93 ]
94 },
95 "SetVariableResultType": {
96 "javaType": "SetVariableResult",
97 "type": "object",
98 "additionalProperties": false,
99 "properties": {
100 "customData": {
101 "$ref": "#/definitions/CustomDataType"
102 },
103 "attributeType": {
104 "$ref": "#/definitions/AttributeEnumType"
105 },
106 "attributeStatus": {
107 "$ref": "#/definitions/SetVariableStatusEnumType"
108 },
109 "attributeStatusInfo": {
110 "$ref": "#/definitions/StatusInfoType"
111 },
112 "component": {
113 "$ref": "#/definitions/ComponentType"
114 },
115 "variable": {
116 "$ref": "#/definitions/VariableType"
117 }
118 },
119 "required": [
120 "attributeStatus",
121 "component",
122 "variable"
123 ]
124 },
125 "StatusInfoType": {
126 "description": "Element providing more information about the status.\r\n",
127 "javaType": "StatusInfo",
128 "type": "object",
129 "additionalProperties": false,
130 "properties": {
131 "customData": {
132 "$ref": "#/definitions/CustomDataType"
133 },
134 "reasonCode": {
135 "description": "A predefined code for the reason why the status is returned in this response. The string is case-insensitive.\r\n",
136 "type": "string",
137 "maxLength": 20
138 },
139 "additionalInfo": {
140 "description": "Additional text to provide detailed information.\r\n",
141 "type": "string",
142 "maxLength": 512
143 }
144 },
145 "required": [
146 "reasonCode"
147 ]
148 },
149 "VariableType": {
150 "description": "Reference key to a component-variable.\r\n",
151 "javaType": "Variable",
152 "type": "object",
153 "additionalProperties": false,
154 "properties": {
155 "customData": {
156 "$ref": "#/definitions/CustomDataType"
157 },
158 "name": {
159 "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",
160 "type": "string",
161 "maxLength": 50
162 },
163 "instance": {
164 "description": "Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
165 "type": "string",
166 "maxLength": 50
167 }
168 },
169 "required": [
170 "name"
171 ]
172 }
173 },
174 "type": "object",
175 "additionalProperties": false,
176 "properties": {
177 "customData": {
178 "$ref": "#/definitions/CustomDataType"
179 },
180 "setVariableResult": {
181 "type": "array",
182 "additionalItems": false,
183 "items": {
184 "$ref": "#/definitions/SetVariableResultType"
185 },
186 "minItems": 1
187 }
188 },
189 "required": [
190 "setVariableResult"
191 ]
192 }