Skip to content

Commit

Permalink
Fix error and Swift settings
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Sep 20, 2024
1 parent 2f5119d commit e281fe1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,19 @@ let package = Package(
name: "SendGridKit",
dependencies: [
.product(name: "AsyncHTTPClient", package: "async-http-client"),
]
],
swiftSettings: swiftSettings
),
.testTarget(
name: "SendGridKitTests",
dependencies: [
.target(name: "SendGridKit"),
]
],
swiftSettings: swiftSettings
),
]
)

var swiftSettings: [SwiftSetting] { [
.enableUpcomingFeature("ExistentialAny"),
] }
2 changes: 1 addition & 1 deletion Sources/SendGridKit/Models/SendGridError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public struct SendGridError: Error, Decodable, Sendable {
public var errors: [SendGridErrorResponse]?

/// When applicable, this property value will be an error ID.
public var ids: String?
public var id: String?
}

public struct SendGridErrorResponse: Decodable, Sendable {
Expand Down

0 comments on commit e281fe1

Please sign in to comment.