Skip to content

Commit

Permalink
[Examples] Remove an extension that was only needed temporarily (#473)
Browse files Browse the repository at this point in the history
### Motivation

See title.

### Modifications

Removed the extension and bumped dependency versions.

### Result

Closer to 1.0.

### Test Plan

All tests passed.
  • Loading branch information
czechboy0 authored Dec 11, 2023
1 parent 330771a commit 0779747
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Examples/hello-world-async-http-client-example/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ let package = Package(
platforms: [.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6), .visionOS(.v1)],
dependencies: [
.package(url: "https://github.com/apple/swift-openapi-generator", exact: "1.0.0-alpha.1"),
.package(url: "https://github.com/apple/swift-openapi-runtime", exact: "1.0.0-alpha.1"),
.package(url: "https://github.com/swift-server/swift-openapi-async-http-client", exact: "1.0.0-alpha.1"),
.package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.0.0"),
.package(url: "https://github.com/swift-server/swift-openapi-async-http-client", from: "1.0.0"),
],
targets: [
.executableTarget(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@ import Foundation
print(try response.ok.body.json.message)
}
}

// TODO: Remove this once 1.0.0 is released with https://github.com/swift-server/swift-openapi-async-http-client/pull/32.
extension AsyncHTTPClientTransport { init() { self.init(configuration: .init()) } }

0 comments on commit 0779747

Please sign in to comment.