Skip to content

Commit 9f15bc9

Browse files
authored
Removed documentation workflow (#7)
- Updated release drafter - Updated RequestDL to 3.0.0
1 parent 93273a2 commit 9f15bc9

File tree

9 files changed

+30
-39
lines changed

9 files changed

+30
-39
lines changed

.github/release-drafter.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ categories:
88
- title: '🧰 Maintenance'
99
label:
1010
- 'documentation'
11+
category-template: "### $TITLE"
1112
template: |
1213
## What’s Changed
13-
14+
1415
$CHANGES
16+
17+
See also: [Documentation](https://swiftpackageindex.com/request-dl/swift-openapi-request-dl/main/documentation/openapirequestdl)

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
platform: macOS-13
2323
package-tests: swift-openapi-request-dlPackageTests
2424
target: OpenAPIRequestDL
25-
secrets: inherit
25+
secrets: inherit

.github/workflows/documentation.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/swift.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ on:
1111

1212
jobs:
1313
swift:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
platform: [macOS-latest, ubuntu-latest]
18+
swift-version: [5.8]
1419
uses: request-dl/.github/.github/workflows/swift.yml@main
1520
with:
16-
swift-version: 5.8
17-
platform: macOS-13
21+
swift-version: ${{ matrix.swift-version }}
22+
platform: ${{ matrix.platform }}

Package.resolved

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ let package = Package(
1515
dependencies: [
1616
.package(
1717
url: "https://github.com/request-dl/request-dl.git",
18-
from: "2.3.0"
18+
from: "3.0.0"
1919
),
2020
.package(
2121
url: "https://github.com/apple/swift-openapi-runtime",
22-
from: "0.1.3"
22+
from: "0.1.4"
2323
),
2424
.package(
2525
url: "https://github.com/apple/swift-docc-plugin",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ To generate code for the objects, you should use the [Swift OpenAPI Generator](h
1010

1111
Additionally, Apple has provided all the details in the WWDC23 session [Meet Swift OpenAPI Generator](https://developer.apple.com/wwdc23/10171).
1212

13-
- [Documentation](https://request-dl.github.io/swift-openapi-request-dl/documentation/openapirequestdl/)
13+
- [Documentation](https://swiftpackageindex.com/request-dl/swift-openapi-request-dl/main/documentation/openapirequestdl)
1414

1515
## Installation
1616

Sources/OpenAPIRequestDL/OpenAPIRequest.swift

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@ struct OpenAPIRequest: Property {
2121
Path(request.path)
2222
}
2323

24-
PropertyForEach(request.headerFields, id: \.self) { header in
25-
CustomHeader(name: header.name, value: header.value)
26-
}
27-
2824
RequestMethod(.init(request.method.name))
25+
26+
let headers = HTTPHeaders(request.headerFields.map { ($0.name, $0.value) })
27+
28+
PropertyForEach(headers.names, id: \.self) { name in
29+
PropertyForEach((headers[name] ?? []).enumerated(), id: \.offset) { offset, value in
30+
CustomHeader(name: name, value: value)
31+
.headerStrategy(offset == .zero ? .setting : .adding)
32+
}
33+
}
2934
}
3035
}

Tests/OpenAPIRequestDLTests/OpenAPIRequestDLTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class RequestDLClientTransportTests: XCTestCase {
1818
status: .init(code: 200, reason: "Ok"),
1919
content: { request }
2020
)
21-
.ignoresProgress()
21+
.collectData()
2222
}
2323
}
2424

@@ -68,7 +68,7 @@ final class RequestDLClientTransportTests: XCTestCase {
6868
status: .init(code: 202, reason: "Ok"),
6969
content: { request }
7070
)
71-
.ignoresProgress()
71+
.collectData()
7272
}
7373
)
7474

0 commit comments

Comments
 (0)