File tree Expand file tree Collapse file tree 6 files changed +428
-56
lines changed
Tests/TencentSCFEventsTests/Utils Expand file tree Collapse file tree 6 files changed +428
-56
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public enum Cloudwatch {
73
73
self . id = try container. decode ( String . self, forKey: . id)
74
74
self . source = try container. decode ( String . self, forKey: . source)
75
75
self . accountId = try container. decode ( String . self, forKey: . accountId)
76
- self . time = ( try container. decode ( ISO8601Coding . self, forKey: . time) ) . wrappedValue
76
+ self . time = ( try container. decode ( ISO8601DateCoding . self, forKey: . time) ) . wrappedValue
77
77
self . region = try container. decode ( AWSRegion . self, forKey: . region)
78
78
self . resources = try container. decode ( [ String ] . self, forKey: . resources)
79
79
Original file line number Diff line number Diff line change @@ -36,8 +36,7 @@ public enum S3 {
36
36
public let eventSource : String
37
37
public let awsRegion : AWSRegion
38
38
39
- @ISO8601WithFractionalSecondsCoding
40
- public var eventTime : Date
39
+ @ISO8601DateWithFractionalSecondsCoding public var eventTime : Date
41
40
public let eventName : String
42
41
public let userIdentity : UserIdentity
43
42
public let requestParameters : RequestParameters
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public enum SES {
56
56
public let headersTruncated : Bool
57
57
public let messageId : String
58
58
public let source : String
59
- @ISO8601WithFractionalSecondsCoding public var timestamp : Date
59
+ @ISO8601DateWithFractionalSecondsCoding public var timestamp : Date
60
60
}
61
61
62
62
public struct CommonHeaders : Decodable {
@@ -84,7 +84,7 @@ public enum SES {
84
84
public let recipients : [ String ]
85
85
public let spamVerdict : Verdict
86
86
public let spfVerdict : Verdict
87
- @ISO8601WithFractionalSecondsCoding public var timestamp : Date
87
+ @ISO8601DateWithFractionalSecondsCoding public var timestamp : Date
88
88
public let virusVerdict : Verdict
89
89
}
90
90
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public enum SNS {
65
65
public let messageAttributes : [ String : Attribute ]
66
66
public let signatureVersion : String
67
67
68
- @ISO8601WithFractionalSecondsCoding
68
+ @ISO8601DateWithFractionalSecondsCoding
69
69
public var timestamp : Date
70
70
public let signingCertURL : String
71
71
public let message : String
You can’t perform that action at this time.
0 commit comments