{
    "title": "JobStream Conditions",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "List of all Conditions using an event",
    "javaType": "com.sos.joc.model.jobstreams.JobstreamConditions",
    "type": "object",
    "properties": {
        "jobStream": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "jobs": {
            "type": "array",
            "items": {
                "description": "In Condition",
                "javaType": "com.sos.joc.model.jobstreams.ConditionRef",
                "type": "object",
                "properties": {
                    "job": {
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                        "maxLength": 255
                    },
                    "expressions": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$"
                        }
                    }
                }
            }
        }
    }
}