Skip to content

Commit 6214c24

Browse files
committed
remove -alpha.1 version from openapi generator plugin
1 parent 6330cf8 commit 6214c24

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.DS_Store
12
.aws-sam/
23
*/build/*
34
.build

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

5862
2. 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-
6264
There 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
6569
import Foundation
6670
import OpenAPIRuntime

0 commit comments

Comments
 (0)