{
    "title": "xmleditor validate configuration in",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.xmleditor.validate.ValidateConfiguration",
    "type": "object",
    "description": "schemaIdentifier only for objectType=YADE/OTHER",
    "required": [
        "objectType",
        "configuration"
    ],
    "properties": {
        "objectType": {
            "javaType": "com.sos.joc.model.xmleditor.common.ObjectType",
            "type": "string",
            "enum": [
                "YADE",
                "NOTIFICATION",
                "OTHER"
            ]
        },
        "configuration": {
            "type": "string",
            "minLength": 1,
            "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$"
        },
        "schemaIdentifier": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        }
    },
    "additionalProperties": false
}