{
    "title": "Daily Plan Change Startime",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.dailyplan.DailyPlanModifyOrder",
    "type": "object",
    "description": "To change the starttime of given order",
    "extends": {
        "javaType": "com.sos.joc.model.dailyplan.DailyPlanCopyOrder",
        "type": "object",
        "extends": {
            "javaType": "com.sos.joc.model.dailyplan.DailyPlanBaseOrder",
            "type": "object",
            "required": [
                "controllerId",
                "orderIds"
            ],
            "properties": {
                "controllerId": {
                    "type": "string",
                    "pattern": "^[^/\\<>?:\"|*]*$",
                    "maxLength": 100,
                    "minLength": 1
                },
                "orderIds": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255,
                        "minLength": 1
                    }
                },
                "auditLog": {
                    "javaType": "com.sos.joc.model.audit.AuditParams",
                    "type": "object",
                    "properties": {
                        "comment": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        },
                        "timeSpent": {
                            "type": "integer",
                            "minimum": 0
                        },
                        "ticketLink": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        }
                    }
                }
            },
            "additionalProperties": false
        },
        "required": [
            "controllerId",
            "orderIds"
        ],
        "properties": {
            "scheduledFor": {
                "description": "ISO format yyyy-mm-dd[ HH:MM[:SS]] or now or now + HH:MM[:SS] or now + SECONDS or empty",
                "type": "string",
                "pattern": "^(now(\\s*\\+\\s*(\\d{1,2}:\\d{1,2}(:\\d{1,2})?|\\d+)?)?|cur\\s*[-+]\\s*(\\d{1,2}:\\d{1,2}(:\\d{1,2})?|\\d+)||never|\\d{4}-\\d{2}-\\d{2}(\\s\\d{1,2}:\\d{1,2}(:\\d{1,2})?)?)$"
            },
            "cycle": {
                "type": "object",
                "javaType": "com.sos.joc.model.dailyplan.Cycle",
                "properties": {
                    "begin": {
                        "type": "string",
                        "pattern": "^[0-9:]*$"
                    },
                    "end": {
                        "type": "string",
                        "pattern": "^[0-9:]*$"
                    },
                    "repeat": {
                        "type": "string",
                        "pattern": "^[0-9:]*$"
                    }
                }
            },
            "timeZone": {
                "type": "string",
                "pattern": "^[^<>]*$",
                "maxLength": 255
            },
            "forceJobAdmission": {
                "type": "boolean",
                "default": false
            },
            "stickDailyPlanDate": {
                "alias": "stickToDailyPlanDate",
                "type": "boolean",
                "default": false
            }
        },
        "additionalProperties": false
    },
    "required": [
        "controllerId",
        "orderIds"
    ],
    "properties": {
        "variables": {
            "description": "a map for arbitrary key-value pairs",
            "javaType": "com.sos.inventory.model.common.Variables",
            "type": "object",
            "additionalProperties": true
        },
        "removeVariables": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "dailyPlanDate": {
            "description": "ISO date YYYY-MM-DD",
            "type": "string",
            "format": "date"
        },
        "startPosition": {
            "anyOf": [
                {
                    "description": "Actually, each even item is a string, each odd item is an integer",
                    "type": "array",
                    "minItems": 1,
                    "items": {
                        "anyOf": [
                            {
                                "type": "integer"
                            },
                            {
                                "type": "string"
                            }
                        ]
                    }
                },
                {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255,
                    "minLength": 1
                }
            ]
        },
        "endPositions": {
            "type": "array",
            "items": {
                "anyOf": [
                    {
                        "description": "Actually, each even item is a string, each odd item is an integer",
                        "type": "array",
                        "minItems": 1,
                        "items": {
                            "anyOf": [
                                {
                                    "type": "integer"
                                },
                                {
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255,
                        "minLength": 1
                    }
                ]
            }
        },
        "blockPosition": {
            "anyOf": [
                {
                    "description": "Actually, each even item is a string, each odd item is an integer",
                    "type": "array",
                    "items": {
                        "anyOf": [
                            {
                                "type": "integer"
                            },
                            {
                                "type": "string"
                            }
                        ]
                    }
                },
                {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255,
                    "minLength": 1
                }
            ]
        }
    },
    "additionalProperties": false
}