| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$id": "urn:OCPP:Cp:2:2020:3:TriggerMessageRequest", |
| 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 | "MessageTriggerEnumType": { |
| 19 | "description": "Type of message to be triggered.\r\n", |
| 20 | "javaType": "MessageTriggerEnum", |
| 21 | "type": "string", |
| 22 | "additionalProperties": false, |
| 23 | "enum": [ |
| 24 | "BootNotification", |
| 25 | "LogStatusNotification", |
| 26 | "FirmwareStatusNotification", |
| 27 | "Heartbeat", |
| 28 | "MeterValues", |
| 29 | "SignChargingStationCertificate", |
| 30 | "SignV2GCertificate", |
| 31 | "StatusNotification", |
| 32 | "TransactionEvent", |
| 33 | "SignCombinedCertificate", |
| 34 | "PublishFirmwareStatusNotification" |
| 35 | ] |
| 36 | }, |
| 37 | "EVSEType": { |
| 38 | "description": "EVSE\r\nurn:x-oca:ocpp:uid:2:233123\r\nElectric Vehicle Supply Equipment\r\n", |
| 39 | "javaType": "EVSE", |
| 40 | "type": "object", |
| 41 | "additionalProperties": false, |
| 42 | "properties": { |
| 43 | "customData": { |
| 44 | "$ref": "#/definitions/CustomDataType" |
| 45 | }, |
| 46 | "id": { |
| 47 | "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", |
| 48 | "type": "integer" |
| 49 | }, |
| 50 | "connectorId": { |
| 51 | "description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n", |
| 52 | "type": "integer" |
| 53 | } |
| 54 | }, |
| 55 | "required": ["id"] |
| 56 | } |
| 57 | }, |
| 58 | "type": "object", |
| 59 | "additionalProperties": false, |
| 60 | "properties": { |
| 61 | "customData": { |
| 62 | "$ref": "#/definitions/CustomDataType" |
| 63 | }, |
| 64 | "evse": { |
| 65 | "$ref": "#/definitions/EVSEType" |
| 66 | }, |
| 67 | "requestedMessage": { |
| 68 | "$ref": "#/definitions/MessageTriggerEnumType" |
| 69 | } |
| 70 | }, |
| 71 | "required": ["requestedMessage"] |
| 72 | } |