| 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 |
"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": [ |
| 99 |
"hashAlgorithm", |
| 100 |
"issuerNameHash", |
| 101 |
"issuerKeyHash", |
| 102 |
"serialNumber" |
| 103 |
] |
| 104 |
}, |
| 105 |
"IdTokenType": { |
| 106 |
"description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n", |
| 107 |
"javaType": "IdToken", |
| 108 |
"type": "object", |
| 109 |
"additionalProperties": false, |
| 110 |
"properties": { |
| 111 |
"customData": { |
| 112 |
"$ref": "#/definitions/CustomDataType" |
| 113 |
}, |
| 114 |
"additionalInfo": { |
| 115 |
"type": "array", |
| 116 |
"additionalItems": false, |
| 117 |
"items": { |
| 118 |
"$ref": "#/definitions/AdditionalInfoType" |
| 119 |
}, |
| 120 |
"minItems": 1 |
| 121 |
}, |
| 122 |
"idToken": { |
| 123 |
"description": "IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID.\r\n", |
| 124 |
"type": "string", |
| 125 |
"maxLength": 36 |
| 126 |
}, |
| 127 |
"type": { |
| 128 |
"$ref": "#/definitions/IdTokenEnumType" |
| 129 |
} |
| 130 |
}, |
| 131 |
"required": [ |
| 132 |
"idToken", |
| 133 |
"type" |
| 134 |
] |
| 135 |
} |
| 136 |
}, |
| 137 |
"type": "object", |
| 138 |
"additionalProperties": false, |
| 139 |
"properties": { |
| 140 |
"customData": { |
| 141 |
"$ref": "#/definitions/CustomDataType" |
| 142 |
}, |
| 143 |
"customerCertificate": { |
| 144 |
"$ref": "#/definitions/CertificateHashDataType" |
| 145 |
}, |
| 146 |
"idToken": { |
| 147 |
"$ref": "#/definitions/IdTokenType" |
| 148 |
}, |
| 149 |
"requestId": { |
| 150 |
"description": "The Id of the request.\r\n\r\n", |
| 151 |
"type": "integer" |
| 152 |
}, |
| 153 |
"report": { |
| 154 |
"description": "Flag indicating whether the Charging Station should return NotifyCustomerInformationRequest messages containing information about the customer referred to.\r\n", |
| 155 |
"type": "boolean" |
| 156 |
}, |
| 157 |
"clear": { |
| 158 |
"description": "Flag indicating whether the Charging Station should clear all information about the customer referred to.\r\n", |
| 159 |
"type": "boolean" |
| 160 |
}, |
| 161 |
"customerIdentifier": { |
| 162 |
"description": "A (e.g. vendor specific) identifier of the customer this request refers to. This field contains a custom identifier other than IdToken and Certificate.\r\nOne of the possible identifiers (customerIdentifier, customerIdToken or customerCertificate) should be in the request message.\r\n", |
| 163 |
"type": "string", |
| 164 |
"maxLength": 64 |
| 165 |
} |
| 166 |
}, |
| 167 |
"required": [ |
| 168 |
"requestId", |
| 169 |
"report", |
| 170 |
"clear" |
| 171 |
] |
| 172 |
} |