Debian Codegraph @

ocpp/v201/schemas/AuthorizeRequest.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 "HashAlgorithmEnumType": {
20 "description": "Used algorithms for the hashes provided.\r\n",
21 "javaType": "HashAlgorithmEnum",
22 "type": "string",
23 "additionalProperties": false,
24 "enum": [
25 "SHA256",
26 "SHA384",
27 "SHA512"
28 ]
29 },
30 "IdTokenEnumType": {
31 "description": "Enumeration of possible idToken types.\r\n",
32 "javaType": "IdTokenEnum",
33 "type": "string",
34 "additionalProperties": false,
35 "enum": [
36 "Central",
37 "eMAID",
38 "ISO14443",
39 "ISO15693",
40 "KeyCode",
41 "Local",
42 "MacAddress",
43 "NoAuthorization"
44 ]
45 },
46 "AdditionalInfoType": {
47 "description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
48 "javaType": "AdditionalInfo",
49 "type": "object",
50 "additionalProperties": false,
51 "properties": {
52 "customData": {
53 "$ref": "#/definitions/CustomDataType"
54 },
55 "additionalIdToken": {
56 "description": "This field specifies the additional IdToken.\r\n",
57 "type": "string",
58 "maxLength": 36
59 },
60 "type": {
61 "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",
62 "type": "string",
63 "maxLength": 50
64 }
65 },
66 "required": [
67 "additionalIdToken",
68 "type"
69 ]
70 },
71 "IdTokenType": {
72 "description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
73 "javaType": "IdToken",
74 "type": "object",
75 "additionalProperties": false,
76 "properties": {
77 "customData": {
78 "$ref": "#/definitions/CustomDataType"
79 },
80 "additionalInfo": {
81 "type": "array",
82 "additionalItems": false,
83 "items": {
84 "$ref": "#/definitions/AdditionalInfoType"
85 },
86 "minItems": 1
87 },
88 "idToken": {
89 "description": "IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID.\r\n",
90 "type": "string",
91 "maxLength": 36
92 },
93 "type": {
94 "$ref": "#/definitions/IdTokenEnumType"
95 }
96 },
97 "required": [
98 "idToken",
99 "type"
100 ]
101 },
102 "OCSPRequestDataType": {
103 "javaType": "OCSPRequestData",
104 "type": "object",
105 "additionalProperties": false,
106 "properties": {
107 "customData": {
108 "$ref": "#/definitions/CustomDataType"
109 },
110 "hashAlgorithm": {
111 "$ref": "#/definitions/HashAlgorithmEnumType"
112 },
113 "issuerNameHash": {
114 "description": "Hashed value of the Issuer DN (Distinguished Name).\r\n\r\n",
115 "type": "string",
116 "maxLength": 128
117 },
118 "issuerKeyHash": {
119 "description": "Hashed value of the issuers public key\r\n",
120 "type": "string",
121 "maxLength": 128
122 },
123 "serialNumber": {
124 "description": "The serial number of the certificate.\r\n",
125 "type": "string",
126 "maxLength": 40
127 },
128 "responderURL": {
129 "description": "This contains the responder URL (Case insensitive). \r\n\r\n",
130 "type": "string",
131 "maxLength": 512
132 }
133 },
134 "required": [
135 "hashAlgorithm",
136 "issuerNameHash",
137 "issuerKeyHash",
138 "serialNumber",
139 "responderURL"
140 ]
141 }
142 },
143 "type": "object",
144 "additionalProperties": false,
145 "properties": {
146 "customData": {
147 "$ref": "#/definitions/CustomDataType"
148 },
149 "idToken": {
150 "$ref": "#/definitions/IdTokenType"
151 },
152 "certificate": {
153 "description": "The X.509 certificated presented by EV and encoded in PEM format.\r\n",
154 "type": "string",
155 "maxLength": 5500
156 },
157 "iso15118CertificateHashData": {
158 "type": "array",
159 "additionalItems": false,
160 "items": {
161 "$ref": "#/definitions/OCSPRequestDataType"
162 },
163 "minItems": 1,
164 "maxItems": 4
165 }
166 },
167 "required": [
168 "idToken"
169 ]
170 }