Skip to content

Commit 410d691

Browse files
authored
Explicit dependency on HTTPTypes (#34)
### Motivation Recent SwiftPM versions seem to be a bit stricter about using (i.e., `import ...`) transitive dependencies without explicitly declaring them as direct dependencies. ### Modifications Explicitly depend on the HTTPTypes module from swift-http-types. ### Result More explicitly declare the dependency graph. ### Test Plan All tests pass.
1 parent ddc356e commit 410d691

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: Package.swift

+2
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ let package = Package(
3737
.package(url: "https://github.com/apple/swift-nio", from: "2.58.0"),
3838
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.19.0"),
3939
.package(url: "https://github.com/apple/swift-openapi-runtime", exact: "1.0.0-alpha.1"),
40+
.package(url: "https://github.com/apple/swift-http-types", from: "1.0.0"),
4041
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
4142
],
4243
targets: [
4344
.target(
4445
name: "OpenAPIAsyncHTTPClient",
4546
dependencies: [
4647
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
48+
.product(name: "HTTPTypes", package: "swift-http-types"),
4749
.product(name: "AsyncHTTPClient", package: "async-http-client"),
4850
.product(name: "NIOFoundationCompat", package: "swift-nio"),
4951
],

0 commit comments

Comments
 (0)