fabianfett / swift-lambda-runtime Goto Github PK
View Code? Open in Web Editor NEW⚠️ Deprecated AWS Lambda Runtime - please use https://github.com/swift-server/swift-aws-lambda-runtime instead
License: Apache License 2.0
⚠️ Deprecated AWS Lambda Runtime - please use https://github.com/swift-server/swift-aws-lambda-runtime instead
License: Apache License 2.0
on macOS
Test Case '-[LambdaRuntimeTests.SNSTests testSimpleEventFromJSON]' started.
/Users/johannes/extsrc/swift-lambda-runtime/Tests/LambdaRuntimeTests/Events/SNSTests.swift:80: error: -[LambdaRuntimeTests.SNSTests testSimpleEventFromJSON] : failed - Unexpected error: dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "Records", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "Sns", intValue: nil), CodingKeys(stringValue: "Timestamp", intValue: nil)], debugDescription: "Expected date to be in format `Optional(\"yyyy-MM-dd\\\'T\\\'HH:mm:ss.SSSZ\")`, but `Optional(\"yyyy-MM-dd\\\'T\\\'HH:mm:ss.SSSZ\") does not forfill format`", underlyingError: nil))
Test Case '-[LambdaRuntimeTests.SNSTests testSimpleEventFromJSON]' failed (0.001 seconds).
Log label: "aws.lambda.swift.request-logger"
I guess a GitHub Action should be build that automatically checks, if there is a new Swift version. If a new version is available, a new commit should be made in a separate repository that also gets a git tag. Then we can upload the Layer binary to the release tag. That way we always have the newest version. No manual work required.
The Go implementation says something different than the official 1-click IoT documentation:
https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-programming.html#1click-events
Go implementation:
https://github.com/aws/aws-lambda-go/blob/master/events/iot_button.go
Go test event:
https://github.com/aws/aws-lambda-go/blob/master/events/testdata/iot-button-event.json
Does anyone have an IoT-Button so that we can generate a real event?
We could think about splitting the events into an extra package LambdaEvents
within this repository. With this other LambdaRuntimes could use the events as well, without having to import LambdaRuntime
. What do you think?
BodyDecodable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.