| 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 |
"EventNotificationEnumType": { |
| 20 |
"description": "Specifies the event notification type of the message.\r\n\r\n", |
| 21 |
"javaType": "EventNotificationEnum", |
| 22 |
"type": "string", |
| 23 |
"additionalProperties": false, |
| 24 |
"enum": [ |
| 25 |
"HardWiredNotification", |
| 26 |
"HardWiredMonitor", |
| 27 |
"PreconfiguredMonitor", |
| 28 |
"CustomMonitor" |
| 29 |
] |
| 30 |
}, |
| 31 |
"EventTriggerEnumType": { |
| 32 |
"description": "Type of monitor that triggered this event, e.g. exceeding a threshold value.\r\n\r\n", |
| 33 |
"javaType": "EventTriggerEnum", |
| 34 |
"type": "string", |
| 35 |
"additionalProperties": false, |
| 36 |
"enum": [ |
| 37 |
"Alerting", |
| 38 |
"Delta", |
| 39 |
"Periodic" |
| 40 |
] |
| 41 |
}, |
| 42 |
"ComponentType": { |
| 43 |
"description": "A physical or logical component\r\n", |
| 44 |
"javaType": "Component", |
| 45 |
"type": "object", |
| 46 |
"additionalProperties": false, |
| 47 |
"properties": { |
| 48 |
"customData": { |
| 49 |
"$ref": "#/definitions/CustomDataType" |
| 50 |
}, |
| 51 |
"evse": { |
| 52 |
"$ref": "#/definitions/EVSEType" |
| 53 |
}, |
| 54 |
"name": { |
| 55 |
"description": "Name of the component. Name should be taken from the list of standardized component names whenever possible. Case Insensitive. strongly advised to use Camel Case.\r\n", |
| 56 |
"type": "string", |
| 57 |
"maxLength": 50 |
| 58 |
}, |
| 59 |
"instance": { |
| 60 |
"description": "Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n", |
| 61 |
"type": "string", |
| 62 |
"maxLength": 50 |
| 63 |
} |
| 64 |
}, |
| 65 |
"required": [ |
| 66 |
"name" |
| 67 |
] |
| 68 |
}, |
| 69 |
"EventDataType": { |
| 70 |
"description": "Class to report an event notification for a component-variable.\r\n", |
| 71 |
"javaType": "EventData", |
| 72 |
"type": "object", |
| 73 |
"additionalProperties": false, |
| 74 |
"properties": { |
| 75 |
"customData": { |
| 76 |
"$ref": "#/definitions/CustomDataType" |
| 77 |
}, |
| 78 |
"eventId": { |
| 79 |
"description": "Identifies the event. This field can be referred to as a cause by other events.\r\n\r\n", |
| 80 |
"type": "integer" |
| 81 |
}, |
| 82 |
"timestamp": { |
| 83 |
"description": "Timestamp of the moment the report was generated.\r\n", |
| 84 |
"type": "string", |
| 85 |
"format": "date-time" |
| 86 |
}, |
| 87 |
"trigger": { |
| 88 |
"$ref": "#/definitions/EventTriggerEnumType" |
| 89 |
}, |
| 90 |
"cause": { |
| 91 |
"description": "Refers to the Id of an event that is considered to be the cause for this event.\r\n\r\n", |
| 92 |
"type": "integer" |
| 93 |
}, |
| 94 |
"actualValue": { |
| 95 |
"description": "Actual value (_attributeType_ Actual) of the variable.\r\n\r\nThe Configuration Variable <<configkey-reporting-value-size,ReportingValueSize>> can be used to limit GetVariableResult.attributeValue, VariableAttribute.value and EventData.actualValue. The max size of these values will always remain equal. \r\n\r\n", |
| 96 |
"type": "string", |
| 97 |
"maxLength": 2500 |
| 98 |
}, |
| 99 |
"techCode": { |
| 100 |
"description": "Technical (error) code as reported by component.\r\n", |
| 101 |
"type": "string", |
| 102 |
"maxLength": 50 |
| 103 |
}, |
| 104 |
"techInfo": { |
| 105 |
"description": "Technical detail information as reported by component.\r\n", |
| 106 |
"type": "string", |
| 107 |
"maxLength": 500 |
| 108 |
}, |
| 109 |
"cleared": { |
| 110 |
"description": "_Cleared_ is set to true to report the clearing of a monitored situation, i.e. a 'return to normal'. \r\n\r\n", |
| 111 |
"type": "boolean" |
| 112 |
}, |
| 113 |
"transactionId": { |
| 114 |
"description": "If an event notification is linked to a specific transaction, this field can be used to specify its transactionId.\r\n", |
| 115 |
"type": "string", |
| 116 |
"maxLength": 36 |
| 117 |
}, |
| 118 |
"component": { |
| 119 |
"$ref": "#/definitions/ComponentType" |
| 120 |
}, |
| 121 |
"variableMonitoringId": { |
| 122 |
"description": "Identifies the VariableMonitoring which triggered the event.\r\n", |
| 123 |
"type": "integer" |
| 124 |
}, |
| 125 |
"eventNotificationType": { |
| 126 |
"$ref": "#/definitions/EventNotificationEnumType" |
| 127 |
}, |
| 128 |
"variable": { |
| 129 |
"$ref": "#/definitions/VariableType" |
| 130 |
} |
| 131 |
}, |
| 132 |
"required": [ |
| 133 |
"eventId", |
| 134 |
"timestamp", |
| 135 |
"trigger", |
| 136 |
"actualValue", |
| 137 |
"eventNotificationType", |
| 138 |
"component", |
| 139 |
"variable" |
| 140 |
] |
| 141 |
}, |
| 142 |
"EVSEType": { |
| 143 |
"description": "EVSE\r\nurn:x-oca:ocpp:uid:2:233123\r\nElectric Vehicle Supply Equipment\r\n", |
| 144 |
"javaType": "EVSE", |
| 145 |
"type": "object", |
| 146 |
"additionalProperties": false, |
| 147 |
"properties": { |
| 148 |
"customData": { |
| 149 |
"$ref": "#/definitions/CustomDataType" |
| 150 |
}, |
| 151 |
"id": { |
| 152 |
"description": "Identified_ Object. MRID. Numeric_ Identifier\r\nurn:x-enexis:ecdm:uid:1:569198\r\nEVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station.\r\n", |
| 153 |
"type": "integer" |
| 154 |
}, |
| 155 |
"connectorId": { |
| 156 |
"description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n", |
| 157 |
"type": "integer" |
| 158 |
} |
| 159 |
}, |
| 160 |
"required": [ |
| 161 |
"id" |
| 162 |
] |
| 163 |
}, |
| 164 |
"VariableType": { |
| 165 |
"description": "Reference key to a component-variable.\r\n", |
| 166 |
"javaType": "Variable", |
| 167 |
"type": "object", |
| 168 |
"additionalProperties": false, |
| 169 |
"properties": { |
| 170 |
"customData": { |
| 171 |
"$ref": "#/definitions/CustomDataType" |
| 172 |
}, |
| 173 |
"name": { |
| 174 |
"description": "Name of the variable. Name should be taken from the list of standardized variable names whenever possible. Case Insensitive. strongly advised to use Camel Case.\r\n", |
| 175 |
"type": "string", |
| 176 |
"maxLength": 50 |
| 177 |
}, |
| 178 |
"instance": { |
| 179 |
"description": "Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n", |
| 180 |
"type": "string", |
| 181 |
"maxLength": 50 |
| 182 |
} |
| 183 |
}, |
| 184 |
"required": [ |
| 185 |
"name" |
| 186 |
] |
| 187 |
} |
| 188 |
}, |
| 189 |
"type": "object", |
| 190 |
"additionalProperties": false, |
| 191 |
"properties": { |
| 192 |
"customData": { |
| 193 |
"$ref": "#/definitions/CustomDataType" |
| 194 |
}, |
| 195 |
"generatedAt": { |
| 196 |
"description": "Timestamp of the moment this message was generated at the Charging Station.\r\n", |
| 197 |
"type": "string", |
| 198 |
"format": "date-time" |
| 199 |
}, |
| 200 |
"tbc": { |
| 201 |
"description": "“to be continued” indicator. Indicates whether another part of the report follows in an upcoming notifyEventRequest message. Default value when omitted is false. \r\n", |
| 202 |
"type": "boolean", |
| 203 |
"default": false |
| 204 |
}, |
| 205 |
"seqNo": { |
| 206 |
"description": "Sequence number of this message. First message starts at 0.\r\n", |
| 207 |
"type": "integer" |
| 208 |
}, |
| 209 |
"eventData": { |
| 210 |
"type": "array", |
| 211 |
"additionalItems": false, |
| 212 |
"items": { |
| 213 |
"$ref": "#/definitions/EventDataType" |
| 214 |
}, |
| 215 |
"minItems": 1 |
| 216 |
} |
| 217 |
}, |
| 218 |
"required": [ |
| 219 |
"generatedAt", |
| 220 |
"seqNo", |
| 221 |
"eventData" |
| 222 |
] |
| 223 |
} |