| 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 |
"FirmwareStatusEnumType": { |
| 20 |
"description": "This contains the progress status of the firmware installation.\r\n", |
| 21 |
"javaType": "FirmwareStatusEnum", |
| 22 |
"type": "string", |
| 23 |
"additionalProperties": false, |
| 24 |
"enum": [ |
| 25 |
"Downloaded", |
| 26 |
"DownloadFailed", |
| 27 |
"Downloading", |
| 28 |
"DownloadScheduled", |
| 29 |
"DownloadPaused", |
| 30 |
"Idle", |
| 31 |
"InstallationFailed", |
| 32 |
"Installing", |
| 33 |
"Installed", |
| 34 |
"InstallRebooting", |
| 35 |
"InstallScheduled", |
| 36 |
"InstallVerificationFailed", |
| 37 |
"InvalidSignature", |
| 38 |
"SignatureVerified" |
| 39 |
] |
| 40 |
} |
| 41 |
}, |
| 42 |
"type": "object", |
| 43 |
"additionalProperties": false, |
| 44 |
"properties": { |
| 45 |
"customData": { |
| 46 |
"$ref": "#/definitions/CustomDataType" |
| 47 |
}, |
| 48 |
"status": { |
| 49 |
"$ref": "#/definitions/FirmwareStatusEnumType" |
| 50 |
}, |
| 51 |
"requestId": { |
| 52 |
"description": "The request id that was provided in the\r\nUpdateFirmwareRequest that started this firmware update.\r\nThis field is mandatory, unless the message was triggered by a TriggerMessageRequest AND there is no firmware update ongoing.\r\n", |
| 53 |
"type": "integer" |
| 54 |
} |
| 55 |
}, |
| 56 |
"required": [ |
| 57 |
"status" |
| 58 |
] |
| 59 |
} |