{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "_id": "port_requests.to_scheduled",
    "description": "Schema for a port request to be transitioned to the 'scheduled' state",
    "oneOf": [
        {
            "required": [
                "scheduled_date"
            ]
        },
        {
            "required": [
                "schedule_on"
            ]
        }
    ],
    "properties": {
        "schedule_on": {
            "description": "date-time at which to perform the porting",
            "properties": {
                "date_time": {
                    "pattern": "^2\\d\\d\\d-\\d\\d-\\d\\d \\d\\d:\\d\\d$",
                    "type": "string"
                },
                "timezone": {
                    "enum": [
                        "America/Los_Angeles"
                    ]
                }
            },
            "required": [
                "timezone",
                "date_time"
            ],
            "type": "object"
        },
        "scheduled_date": {
            "description": "Gregorian timestamp at which to perform the porting",
            "type": "integer"
        }
    },
    "type": "object"
}
