Skip to content

Commit

Permalink
Merge pull request #5 from jstorm31/fix-issue-2
Browse files Browse the repository at this point in the history
Optional content field
  • Loading branch information
Andrewangeta authored Jul 21, 2020
2 parents 49f4b1d + 0516836 commit e5f7506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SendGridKit/Models/SendGridEmail.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public struct SendGridEmail: Encodable {
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]?
Expand Down Expand Up @@ -55,7 +55,7 @@ public struct SendGridEmail: Encodable {
from: EmailAddress? = nil,
replyTo: EmailAddress? = nil,
subject: String? = nil,
content: [[String: String]],
content: [[String: String]]? = nil,
attachments: [EmailAttachment]? = nil,
templateId: String? = nil,
sections: [String: String]? = nil,
Expand Down

0 comments on commit e5f7506

Please sign in to comment.