Skip to content

Commit 8bb3026

Browse files
authored
Merge pull request #25 from mattpolzin/openapikit-3
Switch to OpenAPIKit 3.0.0
2 parents 7e07288 + f754398 commit 8bb3026

37 files changed

+414
-330
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,23 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
image:
16-
- swift:5.3-xenial
17-
- swift:5.3-bionic
18-
- swift:5.3-focal
19-
- swift:5.3-centos8
20-
- swift:5.3-amazonlinux2
16+
- swift:5.9-focal
17+
- swift:5.9-jammy
18+
- swift:5.9-amazonlinux2
2119
container: ${{ matrix.image }}
2220
steps:
2321
- name: Checkout code
2422
uses: actions/checkout@v3
2523
- name: Run tests
26-
run: swift test --enable-test-discovery
24+
run: swift test
2725
osx:
28-
runs-on: macOS-latest
26+
runs-on: macOS-13
2927
steps:
3028
- name: Select latest available Xcode
3129
uses: maxim-lobanov/setup-xcode@v1
32-
with: { 'xcode-version': 'latest' }
30+
with:
31+
xcode-version: latest
3332
- name: Checkout code
3433
uses: actions/checkout@v3
3534
- name: Run tests
36-
run: swift test --enable-test-discovery
35+
run: swift test

Package.resolved

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

Package.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// swift-tools-version:5.2
1+
// swift-tools-version:5.8
22

33
import PackageDescription
44

55
let package = Package(
66
name: "JSONAPI-OpenAPI",
77
platforms: [
8-
.macOS(.v10_11),
8+
.macOS(.v12),
99
],
1010
products: [
1111
.library(
@@ -21,20 +21,20 @@ let package = Package(
2121
dependencies: [
2222
.package(url: "https://github.com/mattpolzin/Sampleable.git", from: "2.0.0"),
2323
.package(url: "https://github.com/mattpolzin/JSONAPI.git", from: "5.0.0"),
24-
.package(url: "https://github.com/mattpolzin/OpenAPIKit.git", from: "2.0.0"),
25-
.package(url: "https://github.com/mattpolzin/OpenAPIReflection.git", from: "1.0.0"),
24+
.package(url: "https://github.com/mattpolzin/OpenAPIKit.git", from: "3.0.0"),
25+
.package(url: "https://github.com/mattpolzin/OpenAPIReflection.git", from: "2.0.0"),
2626
.package(url: "https://github.com/typelift/SwiftCheck.git", .upToNextMinor(from: "0.12.0")),
27-
.package(url: "https://github.com/apple/swift-format.git", from: "0.50300.0"),
28-
.package(name: "NonEmpty", url: "https://github.com/pointfreeco/swift-nonempty.git", .upToNextMinor(from: "0.2.0")),
29-
.package(url: "https://github.com/mattpolzin/JSONAPIViz.git", .exact("0.0.6"))
27+
.package(url: "https://github.com/apple/swift-format.git", from: "509.0.0"),
28+
.package(url: "https://github.com/pointfreeco/swift-nonempty.git", .upToNextMinor(from: "0.2.0")),
29+
.package(url: "https://github.com/mattpolzin/JSONAPIViz.git", exact: "0.0.6")
3030
],
3131
targets: [
3232
.target(
3333
name: "JSONAPIOpenAPI",
3434
dependencies: [
3535
"JSONAPI",
36-
"OpenAPIKit",
37-
"OpenAPIReflection",
36+
.product(name: "OpenAPIKit30", package: "OpenAPIKit"),
37+
.product(name: "OpenAPIReflection30", package: "OpenAPIReflection"),
3838
"Sampleable"
3939
]
4040
),
@@ -51,10 +51,10 @@ let package = Package(
5151
name: "JSONAPISwiftGen",
5252
dependencies: [
5353
"JSONAPI",
54-
"OpenAPIKit",
54+
.product(name: "OpenAPIKit30", package: "OpenAPIKit"),
5555
.product(name: "SwiftFormat", package: "swift-format"),
5656
.product(name: "SwiftFormatConfiguration", package: "swift-format"),
57-
.product(name: "NonEmpty", package: "NonEmpty")
57+
.product(name: "NonEmpty", package: "swift-nonempty")
5858
]
5959
),
6060
.testTarget(

0 commit comments

Comments
 (0)