json_schema: {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "additionalProperties": true,
      "definitions": {
          "attachment": {
              "additionalProperties": false,
              "properties": {
                  "content": {
                      "type": "string"
                  },
                  "file": {
                      "type": "string"
                  }
              },
              "required": [
                  "file"
              ],
              "type": "object"
          }
      },
      "description": "Email resource",
      "properties": {
          "attachments": {
              "items": {
                  "$ref": "#/definitions/attachment"
              },
              "type": "array"
          },
          "context": {
              "type": "string"
          },
          "email": {
              "_format": "email",
              "type": "string"
          },
          "mail_template_code": {
              "type": "string"
          },
          "params": {
              "type": "object"
          },
          "schedule_at": {
              "_format": "date-time",
              "type": "string"
          }
      },
      "required": [
          "email",
          "mail_template_code"
      ],
      "type": "object"
  }