{
    "title": "change (priority of) orders",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.order.ChangeOrders",
    "type": "object",
    "extends": {
        "javaType": "com.sos.joc.model.order.ModifyOrdersBase",
        "type": "object",
        "required": [
            "controllerId"
        ],
        "properties": {
            "controllerId": {
                "type": "string",
                "pattern": "^[^/\\<>?:\"|*]*$",
                "maxLength": 100,
                "minLength": 1
            },
            "orderIds": {
                "type": "array",
                "uniqueItems": true,
                "items": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                }
            },
            "workflowIds": {
                "type": "array",
                "items": {
                    "javaType": "com.sos.controller.model.workflow.WorkflowId",
                    "type": "object",
                    "required": [
                        "path"
                    ],
                    "properties": {
                        "path": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255,
                            "minLength": 1
                        },
                        "versionId": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        }
                    },
                    "additionalProperties": false
                }
            },
            "states": {
                "type": "array",
                "items": {
                    "javaType": "com.sos.joc.model.order.OrderStateText",
                    "type": "string",
                    "enum": [
                        "PLANNED",
                        "PENDING",
                        "SCHEDULED",
                        "RUNNING",
                        "INPROGRESS",
                        "PROMPTING",
                        "SUSPENDED",
                        "FAILED",
                        "WAITING",
                        "BLOCKED",
                        "CANCELLED",
                        "FINISHED",
                        "BROKEN",
                        "UNKNOWN"
                    ]
                }
            },
            "folders": {
                "type": "array",
                "items": {
                    "type": "object",
                    "javaType": "com.sos.joc.model.common.Folder",
                    "required": [
                        "folder"
                    ],
                    "properties": {
                        "folder": {
                            "description": "absolute path of an object.",
                            "type": "string",
                            "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
                            "maxLength": 255,
                            "minLength": 1
                        },
                        "recursive": {
                            "type": "boolean",
                            "default": true
                        }
                    },
                    "additionalProperties": false
                }
            },
            "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"
    ],
    "properties": {
        "priority": {
            "type": "integer"
        }
    },
    "additionalProperties": false
}