{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "definitions": {
        "emailVerified": {
            "type": "boolean"
        },
        "firstName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
        },
        "lastName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
        },
        "companyName": {
            "type": "string",
            "maxLength": 1024
        },
        "phoneNumber": {
            "type": "string",
            "maxLength": 1024
        },
        "location": {
            "type": "string",
            "maxLength": 1024
        },
        "url": {
            "type": "string",
            "maxLength": 1024
        },
        "twoFactorAuthEnabled": {
            "type": "boolean"
        },
        "fullName": {
            "type": "string"
        },
        "password": {
            "type": "string",
            "minLength": 8,
            "maxLength": 2048
        },
        "twoFactorCode": {
            "type": "string",
            "maxLength": 2048
        }
    },
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^[A-Fa-f\\d]{24}$"
        },
        "creationDate": {
            "type": "string",
            "format": "date-time"
        },
        "lastUpdated": {
            "type": "string",
            "format": "date-time"
        },
        "passwordLastUpdated": {
            "type": "string",
            "format": "date-time"
        },
        "email": {
            "type": "string",
            "format": "email",
            "maxLength": 1024
        },
        "emailVerified": {
            "$ref": "#/definitions/emailVerified"
        },
        "firstName": {
            "$ref": "#/definitions/firstName"
        },
        "lastName": {
            "$ref": "#/definitions/lastName"
        },
        "companyName": {
            "$ref": "#/definitions/companyName"
        },
        "phoneNumber": {
            "$ref": "#/definitions/phoneNumber"
        },
        "location": {
            "$ref": "#/definitions/location"
        },
        "url": {
            "$ref": "#/definitions/url"
        },
        "twoFactorAuthEnabled": {
            "$ref": "#/definitions/twoFactorAuthEnabled"
        },
        "fullName": {
            "$ref": "#/definitions/fullName"
        },
        "userId": {
            "type": "string",
            "pattern": "^[A-Fa-f\\d]{24}$"
        },
        "summary": {
            "type": "object",
            "properties": {
                "appCount": {
                    "type": "number"
                },
                "dashCount": {
                    "type": "number"
                },
                "orgCount": {
                    "type": "number"
                }
            }
        }
    }
}