{
    "title": "Approval Email Settings",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.security.foureyes.EmailSettings",
    "type": "object",
    "required": [
        "body",
        "subject"
    ],
    "properties": {
        "body": {
            "type": "string",
            "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$",
            "minLength": 1
        },
        "subject": {
            "type": "string",
            "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$",
            "maxLength": 255,
            "minLength": 1
        },
        "cc": {
            "type": "string",
            "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$"
        },
        "bcc": {
            "type": "string",
            "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$"
        },
        "contentType": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1,
            "default": "text/html"
        },
        "charset": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1,
            "default": "ISO-8859-1"
        },
        "encoding": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1,
            "default": "7bit"
        },
        "priority": {
            "type": "string",
            "javaType": "com.sos.joc.model.security.foureyes.EmailPriority",
            "enum": [
                "HIGHEST",
                "HIGH",
                "NORMAL",
                "LOW",
                "LOWEST"
            ],
            "default": "NORMAL"
        },
        "jobResourceName": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1,
            "default": "eMailDefault"
        }
    },
    "additionalProperties": false
}