Debian Codegraph @

ocpp/v201/schemas/SetVariablesRequest.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 "ComponentType": {
33 "description": "A physical or logical component\r\n",
34 "javaType": "Component",
35 "type": "object",
36 "additionalProperties": false,
37 "properties": {
38 "customData": {
39 "$ref": "#/definitions/CustomDataType"
40 },
41 "evse": {
42 "$ref": "#/definitions/EVSEType"
43 },
44 "name": {
45 "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",
46 "type": "string",
47 "maxLength": 50
48 },
49 "instance": {
50 "description": "Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
51 "type": "string",
52 "maxLength": 50
53 }
54 },
55 "required": [
56 "name"
57 ]
58 },
59 "EVSEType": {
60 "description": "EVSE\r\nurn:x-oca:ocpp:uid:2:233123\r\nElectric Vehicle Supply Equipment\r\n",
61 "javaType": "EVSE",
62 "type": "object",
63 "additionalProperties": false,
64 "properties": {
65 "customData": {
66 "$ref": "#/definitions/CustomDataType"
67 },
68 "id": {
69 "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",
70 "type": "integer"
71 },
72 "connectorId": {
73 "description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n",
74 "type": "integer"
75 }
76 },
77 "required": [
78 "id"
79 ]
80 },
81 "SetVariableDataType": {
82 "javaType": "SetVariableData",
83 "type": "object",
84 "additionalProperties": false,
85 "properties": {
86 "customData": {
87 "$ref": "#/definitions/CustomDataType"
88 },
89 "attributeType": {
90 "$ref": "#/definitions/AttributeEnumType"
91 },
92 "attributeValue": {
93 "description": "Value to be assigned to attribute of variable.\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",
94 "type": "string",
95 "maxLength": 1000
96 },
97 "component": {
98 "$ref": "#/definitions/ComponentType"
99 },
100 "variable": {
101 "$ref": "#/definitions/VariableType"
102 }
103 },
104 "required": [
105 "attributeValue",
106 "component",
107 "variable"
108 ]
109 },
110 "VariableType": {
111 "description": "Reference key to a component-variable.\r\n",
112 "javaType": "Variable",
113 "type": "object",
114 "additionalProperties": false,
115 "properties": {
116 "customData": {
117 "$ref": "#/definitions/CustomDataType"
118 },
119 "name": {
120 "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",
121 "type": "string",
122 "maxLength": 50
123 },
124 "instance": {
125 "description": "Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
126 "type": "string",
127 "maxLength": 50
128 }
129 },
130 "required": [
131 "name"
132 ]
133 }
134 },
135 "type": "object",
136 "additionalProperties": false,
137 "properties": {
138 "customData": {
139 "$ref": "#/definitions/CustomDataType"
140 },
141 "setVariableData": {
142 "type": "array",
143 "additionalItems": false,
144 "items": {
145 "$ref": "#/definitions/SetVariableDataType"
146 },
147 "minItems": 1
148 }
149 },
150 "required": [
151 "setVariableData"
152 ]
153 }