| 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 |
"ReserveNowStatusEnumType": { |
| 20 |
"description": "This indicates the success or failure of the reservation.\r\n", |
| 21 |
"javaType": "ReserveNowStatusEnum", |
| 22 |
"type": "string", |
| 23 |
"additionalProperties": false, |
| 24 |
"enum": [ |
| 25 |
"Accepted", |
| 26 |
"Faulted", |
| 27 |
"Occupied", |
| 28 |
"Rejected", |
| 29 |
"Unavailable" |
| 30 |
] |
| 31 |
}, |
| 32 |
"StatusInfoType": { |
| 33 |
"description": "Element providing more information about the status.\r\n", |
| 34 |
"javaType": "StatusInfo", |
| 35 |
"type": "object", |
| 36 |
"additionalProperties": false, |
| 37 |
"properties": { |
| 38 |
"customData": { |
| 39 |
"$ref": "#/definitions/CustomDataType" |
| 40 |
}, |
| 41 |
"reasonCode": { |
| 42 |
"description": "A predefined code for the reason why the status is returned in this response. The string is case-insensitive.\r\n", |
| 43 |
"type": "string", |
| 44 |
"maxLength": 20 |
| 45 |
}, |
| 46 |
"additionalInfo": { |
| 47 |
"description": "Additional text to provide detailed information.\r\n", |
| 48 |
"type": "string", |
| 49 |
"maxLength": 512 |
| 50 |
} |
| 51 |
}, |
| 52 |
"required": [ |
| 53 |
"reasonCode" |
| 54 |
] |
| 55 |
} |
| 56 |
}, |
| 57 |
"type": "object", |
| 58 |
"additionalProperties": false, |
| 59 |
"properties": { |
| 60 |
"customData": { |
| 61 |
"$ref": "#/definitions/CustomDataType" |
| 62 |
}, |
| 63 |
"status": { |
| 64 |
"$ref": "#/definitions/ReserveNowStatusEnumType" |
| 65 |
}, |
| 66 |
"statusInfo": { |
| 67 |
"$ref": "#/definitions/StatusInfoType" |
| 68 |
} |
| 69 |
}, |
| 70 |
"required": [ |
| 71 |
"status" |
| 72 |
] |
| 73 |
} |