{
    "title": "Daily Plan Order Filter Definition",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.dailyplan.DailyPlanOrdersFilter",
    "type": "object",
    "description": "Define the filter to get orders from the daily plan",
    "extends": {
        "javaType": "com.sos.joc.model.dailyplan.DailyPlanOrderFilterBase",
        "type": "object",
        "description": "Define the filter to get orders from the daily plan",
        "properties": {
            "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",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                }
            },
            "controllerIds": {
                "type": "array",
                "items": {
                    "type": "string",
                    "pattern": "^[^/\\<>?:\"|*]*$",
                    "maxLength": 100
                }
            },
            "dailyPlanDateFrom": {
                "description": "ISO date YYYY-MM-DD",
                "type": "string",
                "format": "date"
            },
            "dailyPlanDateTo": {
                "description": "ISO date YYYY-MM-DD",
                "type": "string",
                "format": "date"
            }
        },
        "additionalProperties": false
    },
    "required": [
        "dailyPlanDateFrom"
    ],
    "properties": {
        "submissionHistoryIds": {
            "type": "array",
            "items": {
                "type": "number",
                "format": "utc-millisec",
                "minimum": 0
            }
        },
        "workflowTags": {
            "type": "array",
            "uniqueItems": true,
            "items": {
                "type": "string",
                "pattern": "^[^<>]*$",
                "maxLength": 255
            }
        },
        "orderTags": {
            "type": "array",
            "uniqueItems": true,
            "items": {
                "type": "string",
                "pattern": "^[^<>]*$",
                "maxLength": 255
            }
        },
        "states": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.dailyplan.DailyPlanOrderStateText",
                "type": "string",
                "enum": [
                    "PLANNED",
                    "SUBMITTED",
                    "FINISHED"
                ]
            }
        },
        "late": {
            "type": "boolean"
        },
        "expandCycleOrders": {
            "description": "for internal use only: controls if the cycle order should be expanded in the answer",
            "type": "boolean",
            "default": false
        }
    },
    "additionalProperties": false
}