Commit | Line | Data |
---|---|---|
d270cc87 JB |
1 | { |
2 | "$schema": "http://json-schema.org/draft-06/schema#", | |
3 | "$id": "urn:OCPP:Cp:2:2020:3:GetInstalledCertificateIdsResponse", | |
4 | "comment": "OCPP 2.0.1 FINAL", | |
5 | "definitions": { | |
6 | "CustomDataType": { | |
7 | "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.", | |
8 | "javaType": "CustomData", | |
9 | "type": "object", | |
10 | "properties": { | |
11 | "vendorId": { | |
12 | "type": "string", | |
13 | "maxLength": 255 | |
14 | } | |
15 | }, | |
16 | "required": ["vendorId"] | |
17 | }, | |
18 | "GetCertificateIdUseEnumType": { | |
19 | "description": "Indicates the type of the requested certificate(s).\r\n", | |
20 | "javaType": "GetCertificateIdUseEnum", | |
21 | "type": "string", | |
22 | "additionalProperties": false, | |
23 | "enum": [ | |
24 | "V2GRootCertificate", | |
25 | "MORootCertificate", | |
26 | "CSMSRootCertificate", | |
27 | "V2GCertificateChain", | |
28 | "ManufacturerRootCertificate" | |
29 | ] | |
30 | }, | |
31 | "GetInstalledCertificateStatusEnumType": { | |
32 | "description": "Charging Station indicates if it can process the request.\r\n", | |
33 | "javaType": "GetInstalledCertificateStatusEnum", | |
34 | "type": "string", | |
35 | "additionalProperties": false, | |
36 | "enum": ["Accepted", "NotFound"] | |
37 | }, | |
38 | "HashAlgorithmEnumType": { | |
39 | "description": "Used algorithms for the hashes provided.\r\n", | |
40 | "javaType": "HashAlgorithmEnum", | |
41 | "type": "string", | |
42 | "additionalProperties": false, | |
43 | "enum": ["SHA256", "SHA384", "SHA512"] | |
44 | }, | |
45 | "CertificateHashDataChainType": { | |
46 | "javaType": "CertificateHashDataChain", | |
47 | "type": "object", | |
48 | "additionalProperties": false, | |
49 | "properties": { | |
50 | "customData": { | |
51 | "$ref": "#/definitions/CustomDataType" | |
52 | }, | |
53 | "certificateHashData": { | |
54 | "$ref": "#/definitions/CertificateHashDataType" | |
55 | }, | |
56 | "certificateType": { | |
57 | "$ref": "#/definitions/GetCertificateIdUseEnumType" | |
58 | }, | |
59 | "childCertificateHashData": { | |
60 | "type": "array", | |
61 | "additionalItems": false, | |
62 | "items": { | |
63 | "$ref": "#/definitions/CertificateHashDataType" | |
64 | }, | |
65 | "minItems": 1, | |
66 | "maxItems": 4 | |
67 | } | |
68 | }, | |
69 | "required": ["certificateType", "certificateHashData"] | |
70 | }, | |
71 | "CertificateHashDataType": { | |
72 | "javaType": "CertificateHashData", | |
73 | "type": "object", | |
74 | "additionalProperties": false, | |
75 | "properties": { | |
76 | "customData": { | |
77 | "$ref": "#/definitions/CustomDataType" | |
78 | }, | |
79 | "hashAlgorithm": { | |
80 | "$ref": "#/definitions/HashAlgorithmEnumType" | |
81 | }, | |
82 | "issuerNameHash": { | |
83 | "description": "Hashed value of the Issuer DN (Distinguished Name).\r\n\r\n", | |
84 | "type": "string", | |
85 | "maxLength": 128 | |
86 | }, | |
87 | "issuerKeyHash": { | |
88 | "description": "Hashed value of the issuers public key\r\n", | |
89 | "type": "string", | |
90 | "maxLength": 128 | |
91 | }, | |
92 | "serialNumber": { | |
93 | "description": "The serial number of the certificate.\r\n", | |
94 | "type": "string", | |
95 | "maxLength": 40 | |
96 | } | |
97 | }, | |
98 | "required": ["hashAlgorithm", "issuerNameHash", "issuerKeyHash", "serialNumber"] | |
99 | }, | |
100 | "StatusInfoType": { | |
101 | "description": "Element providing more information about the status.\r\n", | |
102 | "javaType": "StatusInfo", | |
103 | "type": "object", | |
104 | "additionalProperties": false, | |
105 | "properties": { | |
106 | "customData": { | |
107 | "$ref": "#/definitions/CustomDataType" | |
108 | }, | |
109 | "reasonCode": { | |
110 | "description": "A predefined code for the reason why the status is returned in this response. The string is case-insensitive.\r\n", | |
111 | "type": "string", | |
112 | "maxLength": 20 | |
113 | }, | |
114 | "additionalInfo": { | |
115 | "description": "Additional text to provide detailed information.\r\n", | |
116 | "type": "string", | |
117 | "maxLength": 512 | |
118 | } | |
119 | }, | |
120 | "required": ["reasonCode"] | |
121 | } | |
122 | }, | |
123 | "type": "object", | |
124 | "additionalProperties": false, | |
125 | "properties": { | |
126 | "customData": { | |
127 | "$ref": "#/definitions/CustomDataType" | |
128 | }, | |
129 | "status": { | |
130 | "$ref": "#/definitions/GetInstalledCertificateStatusEnumType" | |
131 | }, | |
132 | "statusInfo": { | |
133 | "$ref": "#/definitions/StatusInfoType" | |
134 | }, | |
135 | "certificateHashDataChain": { | |
136 | "type": "array", | |
137 | "additionalItems": false, | |
138 | "items": { | |
139 | "$ref": "#/definitions/CertificateHashDataChainType" | |
140 | }, | |
141 | "minItems": 1 | |
142 | } | |
143 | }, | |
144 | "required": ["status"] | |
145 | } |