swift-aws-lambda-events icon indicating copy to clipboard operation
swift-aws-lambda-events copied to clipboard

Issue parsing SNS Event

Open mufumade opened this issue 2 years ago • 0 comments

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

  1. Create a Lambda and parse a SNS Event.

SNS Message Structure

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)

mufumade avatar Dec 10 '22 00:12 mufumade