{
    "$schema": "http://json-schema.org/draft-04/schema",
    "properties": {
        "completed": {
            "description": "Indicates whether the user has validated his e-mail address and completed the registration process.",
            "readOnly": true,
            "type": "boolean"
        },
        "completedAt": {
            "_format": "date-time",
            "description": "The date at which the registration was completed. This is only available once the user has completed the registration process.",
            "readOnly": true,
            "type": "string"
        },
        "createdAt": {
            "_format": "date-time",
            "description": "The date at which the registration was created.",
            "readOnly": true,
            "type": "string"
        },
        "expiresAt": {
            "_format": "date-time",
            "description": "The date at which the validity of the link sent in the registration e-mail will expire. This is only available when the registration has been created but not yet completed.",
            "readOnly": true,
            "type": "string"
        },
        "id": {
            "description": "The unique identifier of the registration.",
            "readOnly": true,
            "type": "string"
        },
        "organization": {
            "properties": {
                "displayName": {
                    "description": "The name of the organization as displayed in the UI. If not set, it defaults to the \"name\" property.",
                    "maxLength": 50,
                    "type": "string"
                },
                "name": {
                    "description": "The unique identifier of the organization used in URLs.",
                    "maxLength": 50,
                    "pattern": "^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$",
                    "type": "string",
                    "unique": true
                },
                "public": {
                    "description": "Whether the organization should be public. Anyone can see the dashboard, projects and reports of a public organization, but you still need to be a member to publish new test results.",
                    "type": "boolean"
                }
            },
            "required": [
                "name"
            ],
            "type": "object"
        },
        "user": {
            "properties": {
                "name": {
                    "description": "The username of the new user account.",
                    "maxLength": 25,
                    "pattern": "^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$",
                    "type": "string",
                    "unique": true
                },
                "primaryEmail": {
                    "_format": "email",
                    "description": "The primary e-mail of the new user account.",
                    "maxLength": 255,
                    "type": "string",
                    "unique": true
                }
            },
            "required": [
                "name",
                "primaryEmail"
            ],
            "type": "object"
        }
    },
    "required": [
        "user"
    ],
    "type": "object"
}