Skip to content

Commit

Permalink
Merge pull request #25 from mattpolzin/openapikit-3
Browse files Browse the repository at this point in the history
Switch to OpenAPIKit 3.0.0
  • Loading branch information
mattpolzin authored Nov 6, 2023
2 parents 7e07288 + f754398 commit 8bb3026
Show file tree
Hide file tree
Showing 37 changed files with 414 additions and 330 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,23 @@ jobs:
fail-fast: false
matrix:
image:
- swift:5.3-xenial
- swift:5.3-bionic
- swift:5.3-focal
- swift:5.3-centos8
- swift:5.3-amazonlinux2
- swift:5.9-focal
- swift:5.9-jammy
- swift:5.9-amazonlinux2
container: ${{ matrix.image }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run tests
run: swift test --enable-test-discovery
run: swift test
osx:
runs-on: macOS-latest
runs-on: macOS-13
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/setup-xcode@v1
with: { 'xcode-version': 'latest' }
with:
xcode-version: latest
- name: Checkout code
uses: actions/checkout@v3
- name: Run tests
run: swift test --enable-test-discovery
run: swift test
296 changes: 147 additions & 149 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,151 +1,149 @@
{
"object": {
"pins": [
{
"package": "Chalk",
"repositoryURL": "https://github.com/mxcl/Chalk.git",
"state": {
"branch": null,
"revision": "9aa9f348b86db3cf6702a3e43c081ecec80cf3c7",
"version": "0.4.0"
}
},
{
"package": "FileCheck",
"repositoryURL": "https://github.com/llvm-swift/FileCheck.git",
"state": {
"branch": null,
"revision": "0dc8a5bff1a7f01e1d7bcc20c79e2127b2ea3eeb",
"version": "0.2.5"
}
},
{
"package": "FineJSON",
"repositoryURL": "https://github.com/omochi/FineJSON.git",
"state": {
"branch": null,
"revision": "05101709243cb66d80c92e645210a3b80cf4e17f",
"version": "1.14.0"
}
},
{
"package": "JSONAPI",
"repositoryURL": "https://github.com/mattpolzin/JSONAPI.git",
"state": {
"branch": null,
"revision": "717f3d610e87705adca2bb91a03fd4e92c433845",
"version": "5.0.1"
}
},
{
"package": "JSONAPIViz",
"repositoryURL": "https://github.com/mattpolzin/JSONAPIViz.git",
"state": {
"branch": null,
"revision": "407422e121c2d73f6dd262071df62481cb4016e9",
"version": "0.0.6"
}
},
{
"package": "OpenAPIKit",
"repositoryURL": "https://github.com/mattpolzin/OpenAPIKit.git",
"state": {
"branch": null,
"revision": "4e7f67551e26b0430297d7720a744df22ed7a018",
"version": "2.3.1"
}
},
{
"package": "OpenAPIReflection",
"repositoryURL": "https://github.com/mattpolzin/OpenAPIReflection.git",
"state": {
"branch": null,
"revision": "2747214f17d17d4662c03d9cbe85e5e3307285ea",
"version": "1.0.0"
}
},
{
"package": "Poly",
"repositoryURL": "https://github.com/mattpolzin/Poly.git",
"state": {
"branch": null,
"revision": "7dd2d0d3e6c0625f36f1b8306a90db12719240c8",
"version": "2.5.2"
}
},
{
"package": "RichJSONParser",
"repositoryURL": "https://github.com/omochi/RichJSONParser.git",
"state": {
"branch": null,
"revision": "263e2ecfe88d0500fa99e4cbc8c948529d335534",
"version": "3.0.0"
}
},
{
"package": "Sampleable",
"repositoryURL": "https://github.com/mattpolzin/Sampleable.git",
"state": {
"branch": null,
"revision": "df44bf1a860481109dcf455e3c6daf0a0f1bc259",
"version": "2.1.0"
}
},
{
"package": "swift-argument-parser",
"repositoryURL": "https://github.com/apple/swift-argument-parser.git",
"state": {
"branch": null,
"revision": "9564d61b08a5335ae0a36f789a7d71493eacadfc",
"version": "0.3.2"
}
},
{
"package": "swift-format",
"repositoryURL": "https://github.com/apple/swift-format.git",
"state": {
"branch": null,
"revision": "12089179aa1668a2478b2b2111d98fa37f3531e3",
"version": "0.50300.0"
}
},
{
"package": "NonEmpty",
"repositoryURL": "https://github.com/pointfreeco/swift-nonempty.git",
"state": {
"branch": null,
"revision": "9ef8c4aea57b8da7fedd5303d29470ea2a00c08d",
"version": "0.2.2"
}
},
{
"package": "SwiftSyntax",
"repositoryURL": "https://github.com/apple/swift-syntax",
"state": {
"branch": null,
"revision": "844574d683f53d0737a9c6d706c3ef31ed2955eb",
"version": "0.50300.0"
}
},
{
"package": "SwiftCheck",
"repositoryURL": "https://github.com/typelift/SwiftCheck.git",
"state": {
"branch": null,
"revision": "077c096c3ddfc38db223ac8e525ad16ffb987138",
"version": "0.12.0"
}
},
{
"package": "Yams",
"repositoryURL": "https://github.com/jpsim/Yams.git",
"state": {
"branch": null,
"revision": "9003d51672e516cc59297b7e96bff1dfdedcb4ea",
"version": "4.0.4"
}
}
]
},
"version": 1
"pins" : [
{
"identity" : "chalk",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mxcl/Chalk.git",
"state" : {
"revision" : "a7f58e47a08ca5a84f73acc4bcf6c2c19d990609",
"version" : "0.5.0"
}
},
{
"identity" : "filecheck",
"kind" : "remoteSourceControl",
"location" : "https://github.com/llvm-swift/FileCheck.git",
"state" : {
"revision" : "f7c5f1a9479b33a876a6f5632ca2b92a7ce4b667",
"version" : "0.2.6"
}
},
{
"identity" : "jsonapi",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mattpolzin/JSONAPI.git",
"state" : {
"revision" : "661dfc3ffec1ba3a201fd067877da2f3c553f236",
"version" : "5.1.0"
}
},
{
"identity" : "jsonapiviz",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mattpolzin/JSONAPIViz.git",
"state" : {
"revision" : "407422e121c2d73f6dd262071df62481cb4016e9",
"version" : "0.0.6"
}
},
{
"identity" : "openapikit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mattpolzin/OpenAPIKit.git",
"state" : {
"revision" : "ae98338a8e660ae547b058ebb69c010e70b64e31",
"version" : "3.0.0"
}
},
{
"identity" : "openapireflection",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mattpolzin/OpenAPIReflection.git",
"state" : {
"revision" : "aa9d56c75b913818c513a3b0a2cd716b8443e81e",
"version" : "2.0.0"
}
},
{
"identity" : "poly",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mattpolzin/Poly.git",
"state" : {
"revision" : "c108e9e0a2904134719b082f6c18d64406afc6db",
"version" : "2.6.0"
}
},
{
"identity" : "sampleable",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mattpolzin/Sampleable.git",
"state" : {
"revision" : "df44bf1a860481109dcf455e3c6daf0a0f1bc259",
"version" : "2.1.0"
}
},
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser.git",
"state" : {
"revision" : "8f4d2753f0e4778c76d5f05ad16c74f707390531",
"version" : "1.2.3"
}
},
{
"identity" : "swift-cmark",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-cmark.git",
"state" : {
"revision" : "f218e5d7691f78b55bfa39b367763f4612486c35",
"version" : "0.3.0"
}
},
{
"identity" : "swift-format",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-format.git",
"state" : {
"revision" : "83248b4fa37919f78ffbd4650946759bcc54c2b5",
"version" : "509.0.0"
}
},
{
"identity" : "swift-markdown",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-markdown.git",
"state" : {
"revision" : "e4f95e2dc23097a1a9a1dfdfe3fe3ee44de77378",
"version" : "0.3.0"
}
},
{
"identity" : "swift-nonempty",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-nonempty.git",
"state" : {
"revision" : "9ef8c4aea57b8da7fedd5303d29470ea2a00c08d",
"version" : "0.2.2"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax",
"state" : {
"revision" : "6ad4ea24b01559dde0773e3d091f1b9e36175036",
"version" : "509.0.2"
}
},
{
"identity" : "swiftcheck",
"kind" : "remoteSourceControl",
"location" : "https://github.com/typelift/SwiftCheck.git",
"state" : {
"revision" : "077c096c3ddfc38db223ac8e525ad16ffb987138",
"version" : "0.12.0"
}
},
{
"identity" : "yams",
"kind" : "remoteSourceControl",
"location" : "https://github.com/jpsim/Yams.git",
"state" : {
"revision" : "0d9ee7ea8c4ebd4a489ad7a73d5c6cad55d6fed3",
"version" : "5.0.6"
}
}
],
"version" : 2
}
22 changes: 11 additions & 11 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// swift-tools-version:5.2
// swift-tools-version:5.8

import PackageDescription

let package = Package(
name: "JSONAPI-OpenAPI",
platforms: [
.macOS(.v10_11),
.macOS(.v12),
],
products: [
.library(
Expand All @@ -21,20 +21,20 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/mattpolzin/Sampleable.git", from: "2.0.0"),
.package(url: "https://github.com/mattpolzin/JSONAPI.git", from: "5.0.0"),
.package(url: "https://github.com/mattpolzin/OpenAPIKit.git", from: "2.0.0"),
.package(url: "https://github.com/mattpolzin/OpenAPIReflection.git", from: "1.0.0"),
.package(url: "https://github.com/mattpolzin/OpenAPIKit.git", from: "3.0.0"),
.package(url: "https://github.com/mattpolzin/OpenAPIReflection.git", from: "2.0.0"),
.package(url: "https://github.com/typelift/SwiftCheck.git", .upToNextMinor(from: "0.12.0")),
.package(url: "https://github.com/apple/swift-format.git", from: "0.50300.0"),
.package(name: "NonEmpty", url: "https://github.com/pointfreeco/swift-nonempty.git", .upToNextMinor(from: "0.2.0")),
.package(url: "https://github.com/mattpolzin/JSONAPIViz.git", .exact("0.0.6"))
.package(url: "https://github.com/apple/swift-format.git", from: "509.0.0"),
.package(url: "https://github.com/pointfreeco/swift-nonempty.git", .upToNextMinor(from: "0.2.0")),
.package(url: "https://github.com/mattpolzin/JSONAPIViz.git", exact: "0.0.6")
],
targets: [
.target(
name: "JSONAPIOpenAPI",
dependencies: [
"JSONAPI",
"OpenAPIKit",
"OpenAPIReflection",
.product(name: "OpenAPIKit30", package: "OpenAPIKit"),
.product(name: "OpenAPIReflection30", package: "OpenAPIReflection"),
"Sampleable"
]
),
Expand All @@ -51,10 +51,10 @@ let package = Package(
name: "JSONAPISwiftGen",
dependencies: [
"JSONAPI",
"OpenAPIKit",
.product(name: "OpenAPIKit30", package: "OpenAPIKit"),
.product(name: "SwiftFormat", package: "swift-format"),
.product(name: "SwiftFormatConfiguration", package: "swift-format"),
.product(name: "NonEmpty", package: "NonEmpty")
.product(name: "NonEmpty", package: "swift-nonempty")
]
),
.testTarget(
Expand Down
Loading

0 comments on commit 8bb3026

Please sign in to comment.