Skip to content

Commit e5f7506

Browse files
authored
Merge pull request #5 from jstorm31/fix-issue-2
Optional content field
2 parents 49f4b1d + 0516836 commit e5f7506

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SendGridKit/Models/SendGridEmail.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public struct SendGridEmail: Encodable {
1313
public var subject: String?
1414

1515
/// An array in which you may specify the content of your email.
16-
public var content: [[String: String]]
16+
public var content: [[String: String]]?
1717

1818
/// An array of objects in which you can specify any attachments you want to include.
1919
public var attachments: [EmailAttachment]?
@@ -55,7 +55,7 @@ public struct SendGridEmail: Encodable {
5555
from: EmailAddress? = nil,
5656
replyTo: EmailAddress? = nil,
5757
subject: String? = nil,
58-
content: [[String: String]],
58+
content: [[String: String]]? = nil,
5959
attachments: [EmailAttachment]? = nil,
6060
templateId: String? = nil,
6161
sections: [String: String]? = nil,

0 commit comments

Comments
 (0)