{
    "title": "Account",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.security.accounts.Account",
    "type": "object",
    "required": [
        "identityServiceName",
        "accountName"
    ],
    "properties": {
        "identityServiceName": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "accountName": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "password": {
            "type": "string"
        },
        "forcePasswordChange": {
            "description": "controls if the account is forced to change the password",
            "type": "boolean",
            "default": false
        },
        "disabled": {
            "description": "controls if the object is disabled",
            "type": "boolean",
            "default": false
        },
        "roles": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "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
}