swift-aws-lambda-events
swift-aws-lambda-events copied to clipboard
Issue parsing SNS Event
Expected behavior
Correct parsing using JSONDecoder().decode(SNS.Message.self, from: data)
Actual behavior
Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key CodingKeys(stringValue: \"SigningCertUrl\", intValue: nil) (\"SigningCertUrl\").", underlyingError: nil))
SigningCertUrl and SubscribeUrl will result in parsing error
Steps to reproduce
- Create a Lambda and parse a SNS Event.
SwiftAWSLambdaRuntime version/commit hash
main branch
Swift & OS version (output of swift --version && uname -a)
swift-driver version: 1.62.15 Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)