vapor-community / sendgrid-kit

📧 A Swift on Server SDK for the SendGrid API
https://swiftpackageindex.com/vapor-community/sendgrid-kit
MIT License
10 stars 14 forks source link

Update SendGridEmail's content field to reflect the API #3

Closed jkloo closed 1 month ago

jkloo commented 4 years ago

According to the docs the content field needs to look like this

{
  // ...

  "content": [
    {
      "type": "text/html",
      "value": "Email Content"
    }
  ]

  // ...
}

rather than how it is in the current implementation

{
  // ...

  "content": [
    { "text/html": "Email Content"}
  ],

  // ...
}