@@ -34,8 +34,10 @@ To expose your OpenAPI implementation as an AWS Lambda function:
3434
3535``` swift
3636 dependencies: [
37- .package (url : " https://github.com/apple/swift-openapi-generator.git" , .upToNextMinor (from : " 1.0.0-alpha.1 " )),
37+ .package (url : " https://github.com/apple/swift-openapi-generator.git" , .upToNextMinor (from : " 1.0.0" )),
3838 .package (url : " https://github.com/apple/swift-openapi-runtime.git" , .upToNextMinor (from : " 1.0.0" )),
39+
40+ // add these three dependencies
3941 .package (url : " https://github.com/swift-server/swift-aws-lambda-runtime.git" , branch : " 1.0.0-alpha.1" ),
4042 .package (url : " https://github.com/swift-server/swift-aws-lambda-events.git" , branch : " main" ),
4143 .package (url : " https://github.com/sebsto/swift-openapi-lambda" , branch : " main" )
@@ -48,19 +50,21 @@ To expose your OpenAPI implementation as an AWS Lambda function:
4850 .executableTarget (
4951 name : " YourOpenAPIService" ,
5052 dependencies : [
53+ .product (name : " OpenAPIRuntime" ,package : " swift-openapi-runtime" ),
54+
55+ // add these three dependencies
5156 .product (name : " AWSLambdaRuntime" , package : " swift-aws-lambda-runtime" ),
5257 .product (name : " AWSLambdaEvents" , package : " swift-aws-lambda-events" ),
53- .product (name : " OpenAPIRuntime" ,package : " swift-openapi-runtime" ),
5458 .product (name : " OpenAPILambda" ,package : " swift-openapi-lambda" ),
5559 ],
5660```
5761
58622 . Add a protocol and a constructor to your existing OpenAPI service implementation
5963
60- ! [Animated GIF to show the changes](assets/ swift- openapi- lambda.gif )
61-
6264There are only four changes to make to your existing implementation:
6365
66+ ! [Animated GIF to show the changes](assets/ swift- openapi- lambda.gif )
67+
6468```swift
6569import Foundation
6670import OpenAPIRuntime
0 commit comments