json_schema: {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "title": "emailObj",
      "description": "Used to content of an email",
      "type": "object",
      "additionalProperties": false,
      "properties": {
          "status": {
              "type": "string",
              "description": "Status ot the email (queued, failed, sent)"
          },
          "hash": {
              "type": [
                  "string",
                  "null"
              ],
              "description": "Hash used to identify the email"
          },
          "content": {
              "type": "object",
              "description": "Size in bytes of all pictures captured (SUM storedJpgSize and storedRawSize)",
              "properties": {
                  "FROM": {
                      "type": "object",
                      "properties": {
                          "name": {
                              "type": [
                                  "string",
                                  "null"
                              ],
                              "description": "Full text name of the sender"
                          },
                          "email": {
                              "type": [
                                  "string",
                                  "null"
                              ],
                              "description": "Email of the sender"
                          }
                      }
                  },
                  "TO": {
                      "type": "array",
                      "items": {
                          "type": "object",
                          "properties": {
                              "name": {
                                  "type": "string",
                                  "description": "Full text name of the sender"
                              },
                              "email": {
                                  "type": "string",
                                  "description": "Email of the sender"
                              }
                          }
                      }
                  },
                  "CC": {
                      "type": "array",
                      "items": {
                          "type": "object",
                          "properties": {
                              "name": {
                                  "type": "string",
                                  "description": "Full text name of the sender"
                              },
                              "email": {
                                  "type": "string",
                                  "description": "Email of the sender"
                              }
                          }
                      }
                  },
                  "BCC": {
                      "type": "array",
                      "items": {
                          "type": "object",
                          "properties": {
                              "name": {
                                  "type": "string",
                                  "description": "Full text name of the sender"
                              },
                              "email": {
                                  "type": "string",
                                  "description": "Email of the sender"
                              }
                          }
                      }
                  },
                  "BODY": {
                      "type": [
                          "string",
                          "null"
                      ],
                      "description": "Body of the email"
                  },
                  "SUBJECT": {
                      "type": [
                          "string",
                          "null"
                      ],
                      "description": "Subject of the email"
                  },
                  "ATTACHMENTS": {
                      "type": "array",
                      "items": {
                          "type": "object",
                          "properties": {
                              "PATH": {
                                  "type": "string",
                                  "description": "Full text name of the sender"
                              },
                              "NAME": {
                                  "type": "string",
                                  "description": "Email of the sender"
                              },
                              "WIDTH": {
                                  "type": "number",
                                  "description": "Width of the attachment, height will be calculated automatically"
                              }
                          }
                      }
                  }
              }
          },
          "logs": {
              "type": "array",
              "items": {
                  "type": "string"
              }
          }
      }
  }