Debian Codegraph @

ocpp/v201/schemas/AuthorizeResponse.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 "AuthorizationStatusEnumType": {
20 "description": "ID_ Token. Status. Authorization_ Status\r\nurn:x-oca:ocpp:uid:1:569372\r\nCurrent status of the ID Token.\r\n",
21 "javaType": "AuthorizationStatusEnum",
22 "type": "string",
23 "additionalProperties": false,
24 "enum": [
25 "Accepted",
26 "Blocked",
27 "ConcurrentTx",
28 "Expired",
29 "Invalid",
30 "NoCredit",
31 "NotAllowedTypeEVSE",
32 "NotAtThisLocation",
33 "NotAtThisTime",
34 "Unknown"
35 ]
36 },
37 "AuthorizeCertificateStatusEnumType": {
38 "description": "Certificate status information. \r\n- if all certificates are valid: return 'Accepted'.\r\n- if one of the certificates was revoked, return 'CertificateRevoked'.\r\n",
39 "javaType": "AuthorizeCertificateStatusEnum",
40 "type": "string",
41 "additionalProperties": false,
42 "enum": [
43 "Accepted",
44 "SignatureError",
45 "CertificateExpired",
46 "CertificateRevoked",
47 "NoCertificateAvailable",
48 "CertChainError",
49 "ContractCancelled"
50 ]
51 },
52 "IdTokenEnumType": {
53 "description": "Enumeration of possible idToken types.\r\n",
54 "javaType": "IdTokenEnum",
55 "type": "string",
56 "additionalProperties": false,
57 "enum": [
58 "Central",
59 "eMAID",
60 "ISO14443",
61 "ISO15693",
62 "KeyCode",
63 "Local",
64 "MacAddress",
65 "NoAuthorization"
66 ]
67 },
68 "MessageFormatEnumType": {
69 "description": "Message_ Content. Format. Message_ Format_ Code\r\nurn:x-enexis:ecdm:uid:1:570848\r\nFormat of the message.\r\n",
70 "javaType": "MessageFormatEnum",
71 "type": "string",
72 "additionalProperties": false,
73 "enum": [
74 "ASCII",
75 "HTML",
76 "URI",
77 "UTF8"
78 ]
79 },
80 "AdditionalInfoType": {
81 "description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
82 "javaType": "AdditionalInfo",
83 "type": "object",
84 "additionalProperties": false,
85 "properties": {
86 "customData": {
87 "$ref": "#/definitions/CustomDataType"
88 },
89 "additionalIdToken": {
90 "description": "This field specifies the additional IdToken.\r\n",
91 "type": "string",
92 "maxLength": 36
93 },
94 "type": {
95 "description": "This defines the type of the additionalIdToken. This is a custom type, so the implementation needs to be agreed upon by all involved parties.\r\n",
96 "type": "string",
97 "maxLength": 50
98 }
99 },
100 "required": [
101 "additionalIdToken",
102 "type"
103 ]
104 },
105 "IdTokenInfoType": {
106 "description": "ID_ Token\r\nurn:x-oca:ocpp:uid:2:233247\r\nContains status information about an identifier.\r\nIt is advised to not stop charging for a token that expires during charging, as ExpiryDate is only used for caching purposes. If ExpiryDate is not given, the status has no end date.\r\n",
107 "javaType": "IdTokenInfo",
108 "type": "object",
109 "additionalProperties": false,
110 "properties": {
111 "customData": {
112 "$ref": "#/definitions/CustomDataType"
113 },
114 "status": {
115 "$ref": "#/definitions/AuthorizationStatusEnumType"
116 },
117 "cacheExpiryDateTime": {
118 "description": "ID_ Token. Expiry. Date_ Time\r\nurn:x-oca:ocpp:uid:1:569373\r\nDate and Time after which the token must be considered invalid.\r\n",
119 "type": "string",
120 "format": "date-time"
121 },
122 "chargingPriority": {
123 "description": "Priority from a business point of view. Default priority is 0, The range is from -9 to 9. Higher values indicate a higher priority. The chargingPriority in <<transactioneventresponse,TransactionEventResponse>> overrules this one. \r\n",
124 "type": "integer"
125 },
126 "language1": {
127 "description": "ID_ Token. Language1. Language_ Code\r\nurn:x-oca:ocpp:uid:1:569374\r\nPreferred user interface language of identifier user. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.\r\n\r\n",
128 "type": "string",
129 "maxLength": 8
130 },
131 "evseId": {
132 "description": "Only used when the IdToken is only valid for one or more specific EVSEs, not for the entire Charging Station.\r\n\r\n",
133 "type": "array",
134 "additionalItems": false,
135 "items": {
136 "type": "integer"
137 },
138 "minItems": 1
139 },
140 "groupIdToken": {
141 "$ref": "#/definitions/IdTokenType"
142 },
143 "language2": {
144 "description": "ID_ Token. Language2. Language_ Code\r\nurn:x-oca:ocpp:uid:1:569375\r\nSecond preferred user interface language of identifier user. Don’t use when language1 is omitted, has to be different from language1. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.\r\n",
145 "type": "string",
146 "maxLength": 8
147 },
148 "personalMessage": {
149 "$ref": "#/definitions/MessageContentType"
150 }
151 },
152 "required": [
153 "status"
154 ]
155 },
156 "IdTokenType": {
157 "description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
158 "javaType": "IdToken",
159 "type": "object",
160 "additionalProperties": false,
161 "properties": {
162 "customData": {
163 "$ref": "#/definitions/CustomDataType"
164 },
165 "additionalInfo": {
166 "type": "array",
167 "additionalItems": false,
168 "items": {
169 "$ref": "#/definitions/AdditionalInfoType"
170 },
171 "minItems": 1
172 },
173 "idToken": {
174 "description": "IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID.\r\n",
175 "type": "string",
176 "maxLength": 36
177 },
178 "type": {
179 "$ref": "#/definitions/IdTokenEnumType"
180 }
181 },
182 "required": [
183 "idToken",
184 "type"
185 ]
186 },
187 "MessageContentType": {
188 "description": "Message_ Content\r\nurn:x-enexis:ecdm:uid:2:234490\r\nContains message details, for a message to be displayed on a Charging Station.\r\n\r\n",
189 "javaType": "MessageContent",
190 "type": "object",
191 "additionalProperties": false,
192 "properties": {
193 "customData": {
194 "$ref": "#/definitions/CustomDataType"
195 },
196 "format": {
197 "$ref": "#/definitions/MessageFormatEnumType"
198 },
199 "language": {
200 "description": "Message_ Content. Language. Language_ Code\r\nurn:x-enexis:ecdm:uid:1:570849\r\nMessage language identifier. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.\r\n",
201 "type": "string",
202 "maxLength": 8
203 },
204 "content": {
205 "description": "Message_ Content. Content. Message\r\nurn:x-enexis:ecdm:uid:1:570852\r\nMessage contents.\r\n\r\n",
206 "type": "string",
207 "maxLength": 512
208 }
209 },
210 "required": [
211 "format",
212 "content"
213 ]
214 }
215 },
216 "type": "object",
217 "additionalProperties": false,
218 "properties": {
219 "customData": {
220 "$ref": "#/definitions/CustomDataType"
221 },
222 "idTokenInfo": {
223 "$ref": "#/definitions/IdTokenInfoType"
224 },
225 "certificateStatus": {
226 "$ref": "#/definitions/AuthorizeCertificateStatusEnumType"
227 }
228 },
229 "required": [
230 "idTokenInfo"
231 ]
232 }