{
    "title": "Permission",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.security.permissions.PermissionItem",
    "type": "object",
    "properties": {
        "identityServiceName": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "controllerId": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "roleName": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "permission": {
            "javaType": "com.sos.joc.model.security.permissions.Permission",
            "type": "object",
            "required": [
                "permissionPath"
            ],
            "properties": {
                "permissionPath": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255,
                    "minLength": 1
                },
                "excluded": {
                    "type": "boolean"
                }
            },
            "additionalProperties": false
        },
        "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
                }
            }
        }
    },
    "additionalProperties": false
}