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