| 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 |
"MessagePriorityEnumType": { |
| 20 |
"description": "If provided the Charging Station shall return Display Messages with the given priority only.\r\n", |
| 21 |
"javaType": "MessagePriorityEnum", |
| 22 |
"type": "string", |
| 23 |
"additionalProperties": false, |
| 24 |
"enum": [ |
| 25 |
"AlwaysFront", |
| 26 |
"InFront", |
| 27 |
"NormalCycle" |
| 28 |
] |
| 29 |
}, |
| 30 |
"MessageStateEnumType": { |
| 31 |
"description": "If provided the Charging Station shall return Display Messages with the given state only. \r\n", |
| 32 |
"javaType": "MessageStateEnum", |
| 33 |
"type": "string", |
| 34 |
"additionalProperties": false, |
| 35 |
"enum": [ |
| 36 |
"Charging", |
| 37 |
"Faulted", |
| 38 |
"Idle", |
| 39 |
"Unavailable" |
| 40 |
] |
| 41 |
} |
| 42 |
}, |
| 43 |
"type": "object", |
| 44 |
"additionalProperties": false, |
| 45 |
"properties": { |
| 46 |
"customData": { |
| 47 |
"$ref": "#/definitions/CustomDataType" |
| 48 |
}, |
| 49 |
"id": { |
| 50 |
"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", |
| 51 |
"type": "array", |
| 52 |
"additionalItems": false, |
| 53 |
"items": { |
| 54 |
"type": "integer" |
| 55 |
}, |
| 56 |
"minItems": 1 |
| 57 |
}, |
| 58 |
"requestId": { |
| 59 |
"description": "The Id of this request.\r\n", |
| 60 |
"type": "integer" |
| 61 |
}, |
| 62 |
"priority": { |
| 63 |
"$ref": "#/definitions/MessagePriorityEnumType" |
| 64 |
}, |
| 65 |
"state": { |
| 66 |
"$ref": "#/definitions/MessageStateEnumType" |
| 67 |
} |
| 68 |
}, |
| 69 |
"required": [ |
| 70 |
"requestId" |
| 71 |
] |
| 72 |
} |