{
    "title": "customEvent",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.event.custom.Event",
    "type": "object",
    "required": [
        "jobschedulerId"
    ],
    "properties": {
        "jobschedulerId": {
            "type": "string",
            "pattern": "^[^/\\<>?:\"|*]*$",
            "maxLength": 100
        },
        "id": {
            "type": "number",
            "format": "utc-millisec",
            "minimum": 0
        },
        "eventId": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "eventClass": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "exitCode": {
            "type": "integer",
            "minimum": 0
        },
        "job": {
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255
        },
        "jobChain": {
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255
        },
        "orderId": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "created": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "expires": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "remoteJobSchedulerHost": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "remoteJobSchedulerPort": {
            "type": "integer",
            "minimum": 0,
            "maximum": 65535
        },
        "params": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.common.NameValuePair",
                "type": "object",
                "required": [
                    "name",
                    "value"
                ],
                "properties": {
                    "name": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "value": {
                        "type": "string",
                        "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$"
                    }
                }
            }
        }
    }
}