{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "GetCompositeScheduleResponse",
    "type": "object",
    "properties": {
        "status": {
            "type": "string",
            "enum": [
                "Accepted",
                "Rejected"
            ]
        },
        "connectorId": {
            "type": "integer"
        },
        "scheduleStart": {
            "type": "string",
            "format": "date-time"
        },
        "chargingSchedule": {
            "type": "object",
            "properties": {
                "duration": {
                    "type": "integer"
                },
                "startSchedule": {
                    "type": "string",
                    "format": "date-time"
                },
                "chargingRateUnit": {
                    "type": "string",
                    "enum": [
                        "A",
                        "W"
                    ]
                },
                "chargingSchedulePeriod": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "startPeriod": {
                                "type": "integer"
                            },
                            "limit": {
                                "type": "number",
                                "multipleOf": 0.1
                            },
                            "numberPhases": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "startPeriod",
                            "limit"
                        ]
                    }
                },
                "minChargingRate": {
                    "type": "number",
                    "multipleOf": 0.1
                }
            },
            "required": [
                "chargingRateUnit",
                "chargingSchedulePeriod"
            ]
        }
    },
    "additionalProperties": false,
    "required": [
        "status"
    ]
}