{
    "title": "Daily Plan  Order Filter",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.dailyplan.DailyPlanOrderFilter",
    "type": "object",
    "description": "To get orders from the daily plan",
    "required": [
        "controllerId",
        "filter"
    ],
    "properties": {
        "controllerId": {
            "type": "string",
            "pattern": "^[^/\\<>?:\"|*]*$",
            "maxLength": 100
        },
        "overwrite": {
            "description": "controls if the order should be overwritten",
            "type": "boolean",
            "default": false
        },
        "withSubmit": {
            "description": "controls if the order should be submitted to the controller",
            "type": "boolean",
            "default": true
        },
        "expandCycleOrders": {
            "description": "controls if the cycle order should be expanded in the answer",
            "type": "boolean",
            "default": false
        },
        "filter": {
            "javaType": "com.sos.joc.model.dailyplan.DailyPlanOrderFilterDef",
            "type": "object",
            "description": "Define the filter To get orders from the daily plan",
            "properties": {
                "submissionHistoryIds": {
                    "type": "array",
                    "items": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    }
                },
                "scheduleFolders": {
                    "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
                    }
                },
                "workflowFolders": {
                    "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
                    }
                },
                "schedulePaths": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    }
                },
                "workflowPaths": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    }
                },
                "orderIds": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "controllerIds": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "pattern": "^[^/\\<>?:\"|*]*$",
                        "maxLength": 100
                    }
                },
                "states": {
                    "type": "array",
                    "items": {
                        "javaType": "com.sos.joc.model.dailyplan.DailyPlanOrderStateText",
                        "type": "string",
                        "enum": [
                            "PLANNED",
                            "SUBMITTED",
                            "FINISHED"
                        ]
                    }
                },
                "late": {
                    "type": "boolean"
                },
                "dailyPlanDate": {
                    "description": "ISO date YYYY-MM-DD",
                    "type": "string",
                    "format": "date"
                },
                "schedulesFolder": {
                    "description": "absolute path of an object.",
                    "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
                }
            }
        }
    }
}