From f2c99d78c5e4fcc82a8acbe3c2a05ca084a97b7f Mon Sep 17 00:00:00 2001 From: Andrew Edwards Date: Sun, 8 Apr 2018 14:31:56 -0400 Subject: [PATCH 1/2] Updated content to proper type. --- Sources/SendGrid/Models/SendGridEmail.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SendGrid/Models/SendGridEmail.swift b/Sources/SendGrid/Models/SendGridEmail.swift index bffb369..c0c3289 100644 --- a/Sources/SendGrid/Models/SendGridEmail.swift +++ b/Sources/SendGrid/Models/SendGridEmail.swift @@ -13,7 +13,7 @@ public struct SendGridEmail: Content { public var subject: String? /// An array in which you may specify the content of your email. - public var content: [String: String]? + public var content: [[String: String]]? /// An array of objects in which you can specify any attachments you want to include. public var attachments: [EmailAttachment]? @@ -55,7 +55,7 @@ public struct SendGridEmail: Content { from: EmailAddress? = nil, replyTo: EmailAddress? = nil, subject: String? = nil, - content: [String: String]? = nil, + content: [[String: String]]? = nil, attachments: [EmailAttachment]? = nil, templateId: String? = nil, sections: [String: String]? = nil, From 46a02d41c3085ad441659dcfaec01acff2a6b5dd Mon Sep 17 00:00:00 2001 From: Andrew Edwards Date: Sun, 8 Apr 2018 14:32:58 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b13ef36..465653b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ or leverage the full capabilities of SendGrid's V3 API. Add the dependency to Package.swift: ~~~~swift -.package(url: "https://github.com/vapor-community/sendgrid-provider.git", from: "3.0.0-rc") +.package(url: "https://github.com/vapor-community/sendgrid-provider.git", from: "3.0.0") ~~~~ Register the config and the provider.