{
    "definitions": {
        "body": {
            "properties": {
                "html": {
                    "description": "The HTML body of your email. Used by marketing people.",
                    "example": "Check this out <br> <img src=\"http://i.ytimg.com/vi/J---aiyznGQ/hqdefault.jpg\" alt=\"Logo\" title=\"Logo\" style=\"display:block\" width=\"200\" height=\"87\" />",
                    "type": "string"
                },
                "text": {
                    "description": "The text body of your email. Used for non-html email clients.",
                    "example": "How you doing?",
                    "type": "string"
                }
            },
            "required": [
                "text"
            ],
            "type": "object"
        },
        "from": {
            "properties": {
                "address": {
                    "_format": "email",
                    "description": "The address you're trying to send an email from",
                    "example": "cat@example.com",
                    "type": "string"
                },
                "name": {
                    "description": "The name of the entity you're trying to send an email from",
                    "example": "Keyboard Cat",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "subject": {
            "description": "The email's subject",
            "example": "Oh hai there",
            "type": "string"
        },
        "to": {
            "properties": {
                "address": {
                    "_format": "email",
                    "description": "The address you're trying to send an email to",
                    "example": "dog@example.com",
                    "type": "string"
                },
                "name": {
                    "description": "The name of the entity you're trying to send an email to",
                    "example": "Mr Dog",
                    "type": "string"
                }
            },
            "required": [
                "address"
            ],
            "type": "object"
        }
    },
    "description": "An Electronic Mail Message",
    "links": [
        {
            "description": "Create a new Email",
            "href": "/emails",
            "method": "POST",
            "rel": "self",
            "schema": {
                "rel": "self"
            },
            "targetSchema": {
                "rel": "self"
            },
            "title": "Create email"
        }
    ],
    "properties": {
        "body": {
            "$ref": "#/definitions/body"
        },
        "from": {
            "$ref": "#/definitions/from"
        },
        "subject": {
            "$ref": "#/definitions/subject"
        },
        "to": {
            "$ref": "#/definitions/to"
        }
    },
    "required": [
        "subject",
        "body",
        "to"
    ],
    "title": "Email",
    "type": "object"
}