| 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 |
"ClearMonitoringStatusEnumType": { |
| 20 |
"description": "Result of the clear request for this monitor, identified by its Id.\r\n\r\n", |
| 21 |
"javaType": "ClearMonitoringStatusEnum", |
| 22 |
"type": "string", |
| 23 |
"additionalProperties": false, |
| 24 |
"enum": [ |
| 25 |
"Accepted", |
| 26 |
"Rejected", |
| 27 |
"NotFound" |
| 28 |
] |
| 29 |
}, |
| 30 |
"ClearMonitoringResultType": { |
| 31 |
"javaType": "ClearMonitoringResult", |
| 32 |
"type": "object", |
| 33 |
"additionalProperties": false, |
| 34 |
"properties": { |
| 35 |
"customData": { |
| 36 |
"$ref": "#/definitions/CustomDataType" |
| 37 |
}, |
| 38 |
"status": { |
| 39 |
"$ref": "#/definitions/ClearMonitoringStatusEnumType" |
| 40 |
}, |
| 41 |
"id": { |
| 42 |
"description": "Id of the monitor of which a clear was requested.\r\n\r\n", |
| 43 |
"type": "integer" |
| 44 |
}, |
| 45 |
"statusInfo": { |
| 46 |
"$ref": "#/definitions/StatusInfoType" |
| 47 |
} |
| 48 |
}, |
| 49 |
"required": [ |
| 50 |
"status", |
| 51 |
"id" |
| 52 |
] |
| 53 |
}, |
| 54 |
"StatusInfoType": { |
| 55 |
"description": "Element providing more information about the status.\r\n", |
| 56 |
"javaType": "StatusInfo", |
| 57 |
"type": "object", |
| 58 |
"additionalProperties": false, |
| 59 |
"properties": { |
| 60 |
"customData": { |
| 61 |
"$ref": "#/definitions/CustomDataType" |
| 62 |
}, |
| 63 |
"reasonCode": { |
| 64 |
"description": "A predefined code for the reason why the status is returned in this response. The string is case-insensitive.\r\n", |
| 65 |
"type": "string", |
| 66 |
"maxLength": 20 |
| 67 |
}, |
| 68 |
"additionalInfo": { |
| 69 |
"description": "Additional text to provide detailed information.\r\n", |
| 70 |
"type": "string", |
| 71 |
"maxLength": 512 |
| 72 |
} |
| 73 |
}, |
| 74 |
"required": [ |
| 75 |
"reasonCode" |
| 76 |
] |
| 77 |
} |
| 78 |
}, |
| 79 |
"type": "object", |
| 80 |
"additionalProperties": false, |
| 81 |
"properties": { |
| 82 |
"customData": { |
| 83 |
"$ref": "#/definitions/CustomDataType" |
| 84 |
}, |
| 85 |
"clearMonitoringResult": { |
| 86 |
"type": "array", |
| 87 |
"additionalItems": false, |
| 88 |
"items": { |
| 89 |
"$ref": "#/definitions/ClearMonitoringResultType" |
| 90 |
}, |
| 91 |
"minItems": 1 |
| 92 |
} |
| 93 |
}, |
| 94 |
"required": [ |
| 95 |
"clearMonitoringResult" |
| 96 |
] |
| 97 |
} |