{
    "title": "modify custom event",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.event.custom.ModifyEvent",
    "type": "object",
    "properties": {
        "eventjobChain": {
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255
        },
        "orderId": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "jobChain": {
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255
        },
        "job": {
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255
        },
        "jobschedulerId": {
            "type": "string",
            "pattern": "^[^/\\<>?:\"|*]*$",
            "maxLength": 100
        },
        "eventClass": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "eventId": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "exitCode": {
            "type": "integer",
            "minimum": 0
        },
        "expires": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "expirationPeriod": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "expirationCycle": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "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).)*$"
                    }
                }
            }
        },
        "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
                }
            }
        }
    }
}