ocpp-messages
Version:
TypeScript definitions for Open Charge Point Protocol (OCPP)
73 lines • 2.15 kB
JSON
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2020:3:GetDisplayMessagesRequest",
"comment": "OCPP 2.0.1 FINAL",
"definitions": {
"CustomDataType": {
"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.",
"javaType": "CustomData",
"type": "object",
"properties": {
"vendorId": {
"type": "string",
"maxLength": 255
}
},
"required": [
"vendorId"
]
},
"MessagePriorityEnumType": {
"description": "If provided the Charging Station shall return Display Messages with the given priority only.\r\n",
"javaType": "MessagePriorityEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"AlwaysFront",
"InFront",
"NormalCycle"
]
},
"MessageStateEnumType": {
"description": "If provided the Charging Station shall return Display Messages with the given state only. \r\n",
"javaType": "MessageStateEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"Charging",
"Faulted",
"Idle",
"Unavailable"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"customData": {
"$ref": "#/definitions/CustomDataType"
},
"id": {
"description": "If provided the Charging Station shall return Display Messages of the given ids. This field SHALL NOT contain more ids than set in <<configkey-number-of-display-messages,NumberOfDisplayMessages.maxLimit>>\r\n\r\n",
"type": "array",
"additionalItems": false,
"items": {
"type": "integer"
},
"minItems": 1
},
"requestId": {
"description": "The Id of this request.\r\n",
"type": "integer"
},
"priority": {
"$ref": "#/definitions/MessagePriorityEnumType"
},
"state": {
"$ref": "#/definitions/MessageStateEnumType"
}
},
"required": [
"requestId"
]
}