Debian Codegraph @

ocpp/v201/schemas/NotifyReportRequest.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: Actual, MinSet, MaxSet, etc.\r\nDefaults to Actual if absent.\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 "DataEnumType": {
33 "description": "Data type of this variable.\r\n",
34 "javaType": "DataEnum",
35 "type": "string",
36 "additionalProperties": false,
37 "enum": [
38 "string",
39 "decimal",
40 "integer",
41 "dateTime",
42 "boolean",
43 "OptionList",
44 "SequenceList",
45 "MemberList"
46 ]
47 },
48 "MutabilityEnumType": {
49 "description": "Defines the mutability of this attribute. Default is ReadWrite when omitted.\r\n",
50 "javaType": "MutabilityEnum",
51 "type": "string",
52 "default": "ReadWrite",
53 "additionalProperties": false,
54 "enum": [
55 "ReadOnly",
56 "WriteOnly",
57 "ReadWrite"
58 ]
59 },
60 "ComponentType": {
61 "description": "A physical or logical component\r\n",
62 "javaType": "Component",
63 "type": "object",
64 "additionalProperties": false,
65 "properties": {
66 "customData": {
67 "$ref": "#/definitions/CustomDataType"
68 },
69 "evse": {
70 "$ref": "#/definitions/EVSEType"
71 },
72 "name": {
73 "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",
74 "type": "string",
75 "maxLength": 50
76 },
77 "instance": {
78 "description": "Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
79 "type": "string",
80 "maxLength": 50
81 }
82 },
83 "required": [
84 "name"
85 ]
86 },
87 "EVSEType": {
88 "description": "EVSE\r\nurn:x-oca:ocpp:uid:2:233123\r\nElectric Vehicle Supply Equipment\r\n",
89 "javaType": "EVSE",
90 "type": "object",
91 "additionalProperties": false,
92 "properties": {
93 "customData": {
94 "$ref": "#/definitions/CustomDataType"
95 },
96 "id": {
97 "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",
98 "type": "integer"
99 },
100 "connectorId": {
101 "description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n",
102 "type": "integer"
103 }
104 },
105 "required": [
106 "id"
107 ]
108 },
109 "ReportDataType": {
110 "description": "Class to report components, variables and variable attributes and characteristics.\r\n",
111 "javaType": "ReportData",
112 "type": "object",
113 "additionalProperties": false,
114 "properties": {
115 "customData": {
116 "$ref": "#/definitions/CustomDataType"
117 },
118 "component": {
119 "$ref": "#/definitions/ComponentType"
120 },
121 "variable": {
122 "$ref": "#/definitions/VariableType"
123 },
124 "variableAttribute": {
125 "type": "array",
126 "additionalItems": false,
127 "items": {
128 "$ref": "#/definitions/VariableAttributeType"
129 },
130 "minItems": 1,
131 "maxItems": 4
132 },
133 "variableCharacteristics": {
134 "$ref": "#/definitions/VariableCharacteristicsType"
135 }
136 },
137 "required": [
138 "component",
139 "variable",
140 "variableAttribute"
141 ]
142 },
143 "VariableAttributeType": {
144 "description": "Attribute data of a variable.\r\n",
145 "javaType": "VariableAttribute",
146 "type": "object",
147 "additionalProperties": false,
148 "properties": {
149 "customData": {
150 "$ref": "#/definitions/CustomDataType"
151 },
152 "type": {
153 "$ref": "#/definitions/AttributeEnumType"
154 },
155 "value": {
156 "description": "Value of the attribute. May only be omitted when mutability is set to 'WriteOnly'.\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",
157 "type": "string",
158 "maxLength": 2500
159 },
160 "mutability": {
161 "$ref": "#/definitions/MutabilityEnumType"
162 },
163 "persistent": {
164 "description": "If true, value will be persistent across system reboots or power down. Default when omitted is false.\r\n",
165 "type": "boolean",
166 "default": false
167 },
168 "constant": {
169 "description": "If true, value that will never be changed by the Charging Station at runtime. Default when omitted is false.\r\n",
170 "type": "boolean",
171 "default": false
172 }
173 }
174 },
175 "VariableCharacteristicsType": {
176 "description": "Fixed read-only parameters of a variable.\r\n",
177 "javaType": "VariableCharacteristics",
178 "type": "object",
179 "additionalProperties": false,
180 "properties": {
181 "customData": {
182 "$ref": "#/definitions/CustomDataType"
183 },
184 "unit": {
185 "description": "Unit of the variable. When the transmitted value has a unit, this field SHALL be included.\r\n",
186 "type": "string",
187 "maxLength": 16
188 },
189 "dataType": {
190 "$ref": "#/definitions/DataEnumType"
191 },
192 "minLimit": {
193 "description": "Minimum possible value of this variable.\r\n",
194 "type": "number"
195 },
196 "maxLimit": {
197 "description": "Maximum possible value of this variable. When the datatype of this Variable is String, OptionList, SequenceList or MemberList, this field defines the maximum length of the (CSV) string.\r\n",
198 "type": "number"
199 },
200 "valuesList": {
201 "description": "Allowed values when variable is Option/Member/SequenceList. \r\n\r\n* OptionList: The (Actual) Variable value must be a single value from the reported (CSV) enumeration list.\r\n\r\n* MemberList: The (Actual) Variable value may be an (unordered) (sub-)set of the reported (CSV) valid values list.\r\n\r\n* SequenceList: The (Actual) Variable value may be an ordered (priority, etc) (sub-)set of the reported (CSV) valid values.\r\n\r\nThis is a comma separated list.\r\n\r\nThe Configuration Variable <<configkey-configuration-value-size,ConfigurationValueSize>> can be used to limit SetVariableData.attributeValue and VariableCharacteristics.valueList. The max size of these values will always remain equal. \r\n\r\n",
202 "type": "string",
203 "maxLength": 1000
204 },
205 "supportsMonitoring": {
206 "description": "Flag indicating if this variable supports monitoring. \r\n",
207 "type": "boolean"
208 }
209 },
210 "required": [
211 "dataType",
212 "supportsMonitoring"
213 ]
214 },
215 "VariableType": {
216 "description": "Reference key to a component-variable.\r\n",
217 "javaType": "Variable",
218 "type": "object",
219 "additionalProperties": false,
220 "properties": {
221 "customData": {
222 "$ref": "#/definitions/CustomDataType"
223 },
224 "name": {
225 "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",
226 "type": "string",
227 "maxLength": 50
228 },
229 "instance": {
230 "description": "Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
231 "type": "string",
232 "maxLength": 50
233 }
234 },
235 "required": [
236 "name"
237 ]
238 }
239 },
240 "type": "object",
241 "additionalProperties": false,
242 "properties": {
243 "customData": {
244 "$ref": "#/definitions/CustomDataType"
245 },
246 "requestId": {
247 "description": "The id of the GetReportRequest or GetBaseReportRequest that requested this report\r\n",
248 "type": "integer"
249 },
250 "generatedAt": {
251 "description": "Timestamp of the moment this message was generated at the Charging Station.\r\n",
252 "type": "string",
253 "format": "date-time"
254 },
255 "reportData": {
256 "type": "array",
257 "additionalItems": false,
258 "items": {
259 "$ref": "#/definitions/ReportDataType"
260 },
261 "minItems": 1
262 },
263 "tbc": {
264 "description": "“to be continued” indicator. Indicates whether another part of the report follows in an upcoming notifyReportRequest message. Default value when omitted is false.\r\n\r\n",
265 "type": "boolean",
266 "default": false
267 },
268 "seqNo": {
269 "description": "Sequence number of this message. First message starts at 0.\r\n",
270 "type": "integer"
271 }
272 },
273 "required": [
274 "requestId",
275 "generatedAt",
276 "seqNo"
277 ]
278 }