{
    "title": "ConditionEvents",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.jobstreams.ConditionEvents",
    "type": "object",
    "required": [
        "deliveryDate",
        "conditionEvents"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Date time. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
            "type": "string",
            "format": "date-time"
        },
        "session": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 100
        },
        "conditionEvents": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.jobstreams.ConditionEvent",
                "type": "object",
                "required": [
                    "jobschedulerId",
                    "jobStream",
                    "outConditionId",
                    "event"
                ],
                "properties": {
                    "jobschedulerId": {
                        "type": "string",
                        "pattern": "^[^/\\<>?:\"|*]*$",
                        "maxLength": 100
                    },
                    "event": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "globalEvent": {
                        "type": "boolean"
                    },
                    "path": {
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                        "maxLength": 255
                    },
                    "jobStream": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "session": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 100
                    },
                    "outConditionId": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    }
                }
            }
        },
        "conditionMissingEvents": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.jobstreams.ConditionEvent",
                "type": "object",
                "required": [
                    "jobschedulerId",
                    "jobStream",
                    "outConditionId",
                    "event"
                ],
                "properties": {
                    "jobschedulerId": {
                        "type": "string",
                        "pattern": "^[^/\\<>?:\"|*]*$",
                        "maxLength": 100
                    },
                    "event": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "globalEvent": {
                        "type": "boolean"
                    },
                    "path": {
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                        "maxLength": 255
                    },
                    "jobStream": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "session": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 100
                    },
                    "outConditionId": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    }
                }
            }
        }
    }
}