Fixes to OCA OCPP 2.0.1 JSON schemas
[e-mobility-charging-stations-simulator.git] / src / assets / json-schemas / ocpp / 2.0 / CertificateSignedRequest.json
1 {
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "$id": "urn:OCPP:Cp:2:2020:3:CertificateSignedRequest",
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 "CertificateSigningUseEnumType": {
19 "description": "Indicates the type of the signed certificate that is returned. When omitted the certificate is used for both the 15118 connection (if implemented) and the Charging Station to CSMS connection. This field is required when a typeOfCertificate was included in the <<signcertificaterequest,SignCertificateRequest>> that requested this certificate to be signed AND both the 15118 connection and the Charging Station connection are implemented.\r\n\r\n",
20 "javaType": "CertificateSigningUseEnum",
21 "type": "string",
22 "additionalProperties": false,
23 "enum": ["ChargingStationCertificate", "V2GCertificate"]
24 }
25 },
26 "type": "object",
27 "additionalProperties": false,
28 "properties": {
29 "customData": {
30 "$ref": "#/definitions/CustomDataType"
31 },
32 "certificateChain": {
33 "description": "The signed PEM encoded X.509 certificate. This can also contain the necessary sub CA certificates. In that case, the order of the bundle should follow the certificate chain, starting from the leaf certificate.\r\n\r\nThe Configuration Variable <<configkey-max-certificate-chain-size,MaxCertificateChainSize>> can be used to limit the maximum size of this field.\r\n",
34 "type": "string",
35 "maxLength": 10000
36 },
37 "certificateType": {
38 "$ref": "#/definitions/CertificateSigningUseEnumType"
39 }
40 },
41 "required": ["certificateChain"]
42 }