| 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 |
"EnergyTransferModeEnumType": { |
| 20 |
"description": "Charging_ Needs. Requested. Energy_ Transfer_ Mode_ Code\r\nurn:x-oca:ocpp:uid:1:569209\r\nMode of energy transfer requested by the EV.\r\n", |
| 21 |
"javaType": "EnergyTransferModeEnum", |
| 22 |
"type": "string", |
| 23 |
"additionalProperties": false, |
| 24 |
"enum": [ |
| 25 |
"DC", |
| 26 |
"AC_single_phase", |
| 27 |
"AC_two_phase", |
| 28 |
"AC_three_phase" |
| 29 |
] |
| 30 |
}, |
| 31 |
"ACChargingParametersType": { |
| 32 |
"description": "AC_ Charging_ Parameters\r\nurn:x-oca:ocpp:uid:2:233250\r\nEV AC charging parameters.\r\n\r\n", |
| 33 |
"javaType": "ACChargingParameters", |
| 34 |
"type": "object", |
| 35 |
"additionalProperties": false, |
| 36 |
"properties": { |
| 37 |
"customData": { |
| 38 |
"$ref": "#/definitions/CustomDataType" |
| 39 |
}, |
| 40 |
"energyAmount": { |
| 41 |
"description": "AC_ Charging_ Parameters. Energy_ Amount. Energy_ Amount\r\nurn:x-oca:ocpp:uid:1:569211\r\nAmount of energy requested (in Wh). This includes energy required for preconditioning.\r\n", |
| 42 |
"type": "integer" |
| 43 |
}, |
| 44 |
"evMinCurrent": { |
| 45 |
"description": "AC_ Charging_ Parameters. EV_ Min. Current\r\nurn:x-oca:ocpp:uid:1:569212\r\nMinimum current (amps) supported by the electric vehicle (per phase).\r\n", |
| 46 |
"type": "integer" |
| 47 |
}, |
| 48 |
"evMaxCurrent": { |
| 49 |
"description": "AC_ Charging_ Parameters. EV_ Max. Current\r\nurn:x-oca:ocpp:uid:1:569213\r\nMaximum current (amps) supported by the electric vehicle (per phase). Includes cable capacity.\r\n", |
| 50 |
"type": "integer" |
| 51 |
}, |
| 52 |
"evMaxVoltage": { |
| 53 |
"description": "AC_ Charging_ Parameters. EV_ Max. Voltage\r\nurn:x-oca:ocpp:uid:1:569214\r\nMaximum voltage supported by the electric vehicle\r\n", |
| 54 |
"type": "integer" |
| 55 |
} |
| 56 |
}, |
| 57 |
"required": [ |
| 58 |
"energyAmount", |
| 59 |
"evMinCurrent", |
| 60 |
"evMaxCurrent", |
| 61 |
"evMaxVoltage" |
| 62 |
] |
| 63 |
}, |
| 64 |
"ChargingNeedsType": { |
| 65 |
"description": "Charging_ Needs\r\nurn:x-oca:ocpp:uid:2:233249\r\n", |
| 66 |
"javaType": "ChargingNeeds", |
| 67 |
"type": "object", |
| 68 |
"additionalProperties": false, |
| 69 |
"properties": { |
| 70 |
"customData": { |
| 71 |
"$ref": "#/definitions/CustomDataType" |
| 72 |
}, |
| 73 |
"acChargingParameters": { |
| 74 |
"$ref": "#/definitions/ACChargingParametersType" |
| 75 |
}, |
| 76 |
"dcChargingParameters": { |
| 77 |
"$ref": "#/definitions/DCChargingParametersType" |
| 78 |
}, |
| 79 |
"requestedEnergyTransfer": { |
| 80 |
"$ref": "#/definitions/EnergyTransferModeEnumType" |
| 81 |
}, |
| 82 |
"departureTime": { |
| 83 |
"description": "Charging_ Needs. Departure_ Time. Date_ Time\r\nurn:x-oca:ocpp:uid:1:569223\r\nEstimated departure time of the EV.\r\n", |
| 84 |
"type": "string", |
| 85 |
"format": "date-time" |
| 86 |
} |
| 87 |
}, |
| 88 |
"required": [ |
| 89 |
"requestedEnergyTransfer" |
| 90 |
] |
| 91 |
}, |
| 92 |
"DCChargingParametersType": { |
| 93 |
"description": "DC_ Charging_ Parameters\r\nurn:x-oca:ocpp:uid:2:233251\r\nEV DC charging parameters\r\n\r\n\r\n", |
| 94 |
"javaType": "DCChargingParameters", |
| 95 |
"type": "object", |
| 96 |
"additionalProperties": false, |
| 97 |
"properties": { |
| 98 |
"customData": { |
| 99 |
"$ref": "#/definitions/CustomDataType" |
| 100 |
}, |
| 101 |
"evMaxCurrent": { |
| 102 |
"description": "DC_ Charging_ Parameters. EV_ Max. Current\r\nurn:x-oca:ocpp:uid:1:569215\r\nMaximum current (amps) supported by the electric vehicle. Includes cable capacity.\r\n", |
| 103 |
"type": "integer" |
| 104 |
}, |
| 105 |
"evMaxVoltage": { |
| 106 |
"description": "DC_ Charging_ Parameters. EV_ Max. Voltage\r\nurn:x-oca:ocpp:uid:1:569216\r\nMaximum voltage supported by the electric vehicle\r\n", |
| 107 |
"type": "integer" |
| 108 |
}, |
| 109 |
"energyAmount": { |
| 110 |
"description": "DC_ Charging_ Parameters. Energy_ Amount. Energy_ Amount\r\nurn:x-oca:ocpp:uid:1:569217\r\nAmount of energy requested (in Wh). This inludes energy required for preconditioning.\r\n", |
| 111 |
"type": "integer" |
| 112 |
}, |
| 113 |
"evMaxPower": { |
| 114 |
"description": "DC_ Charging_ Parameters. EV_ Max. Power\r\nurn:x-oca:ocpp:uid:1:569218\r\nMaximum power (in W) supported by the electric vehicle. Required for DC charging.\r\n", |
| 115 |
"type": "integer" |
| 116 |
}, |
| 117 |
"stateOfCharge": { |
| 118 |
"description": "DC_ Charging_ Parameters. State_ Of_ Charge. Numeric\r\nurn:x-oca:ocpp:uid:1:569219\r\nEnergy available in the battery (in percent of the battery capacity)\r\n", |
| 119 |
"type": "integer", |
| 120 |
"minimum": 0.0, |
| 121 |
"maximum": 100.0 |
| 122 |
}, |
| 123 |
"evEnergyCapacity": { |
| 124 |
"description": "DC_ Charging_ Parameters. EV_ Energy_ Capacity. Numeric\r\nurn:x-oca:ocpp:uid:1:569220\r\nCapacity of the electric vehicle battery (in Wh)\r\n", |
| 125 |
"type": "integer" |
| 126 |
}, |
| 127 |
"fullSoC": { |
| 128 |
"description": "DC_ Charging_ Parameters. Full_ SOC. Percentage\r\nurn:x-oca:ocpp:uid:1:569221\r\nPercentage of SoC at which the EV considers the battery fully charged. (possible values: 0 - 100)\r\n", |
| 129 |
"type": "integer", |
| 130 |
"minimum": 0.0, |
| 131 |
"maximum": 100.0 |
| 132 |
}, |
| 133 |
"bulkSoC": { |
| 134 |
"description": "DC_ Charging_ Parameters. Bulk_ SOC. Percentage\r\nurn:x-oca:ocpp:uid:1:569222\r\nPercentage of SoC at which the EV considers a fast charging process to end. (possible values: 0 - 100)\r\n", |
| 135 |
"type": "integer", |
| 136 |
"minimum": 0.0, |
| 137 |
"maximum": 100.0 |
| 138 |
} |
| 139 |
}, |
| 140 |
"required": [ |
| 141 |
"evMaxCurrent", |
| 142 |
"evMaxVoltage" |
| 143 |
] |
| 144 |
} |
| 145 |
}, |
| 146 |
"type": "object", |
| 147 |
"additionalProperties": false, |
| 148 |
"properties": { |
| 149 |
"customData": { |
| 150 |
"$ref": "#/definitions/CustomDataType" |
| 151 |
}, |
| 152 |
"maxScheduleTuples": { |
| 153 |
"description": "Contains the maximum schedule tuples the car supports per schedule.\r\n", |
| 154 |
"type": "integer" |
| 155 |
}, |
| 156 |
"chargingNeeds": { |
| 157 |
"$ref": "#/definitions/ChargingNeedsType" |
| 158 |
}, |
| 159 |
"evseId": { |
| 160 |
"description": "Defines the EVSE and connector to which the EV is connected. EvseId may not be 0.\r\n", |
| 161 |
"type": "integer" |
| 162 |
} |
| 163 |
}, |
| 164 |
"required": [ |
| 165 |
"evseId", |
| 166 |
"chargingNeeds" |
| 167 |
] |
| 168 |
} |