From cee106fb8c5760211f4336ddc732d387768e20b6 Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Mon, 1 Jul 2024 10:01:46 +0100 Subject: [PATCH] Use Hummingbird RC 1 (#18) --- Package.swift | 2 +- Sources/OpenAPIHummingbird/OpenAPITransport.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index cd87cd7..7f9ebd5 100644 --- a/Package.swift +++ b/Package.swift @@ -13,7 +13,7 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/apple/swift-openapi-runtime.git", from: "1.0.0"), - .package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0-beta.8"), + .package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0-rc.1"), ], targets: [ .target( diff --git a/Sources/OpenAPIHummingbird/OpenAPITransport.swift b/Sources/OpenAPIHummingbird/OpenAPITransport.swift index 27496e9..f8ddd9c 100644 --- a/Sources/OpenAPIHummingbird/OpenAPITransport.swift +++ b/Sources/OpenAPIHummingbird/OpenAPITransport.swift @@ -34,7 +34,7 @@ extension RouterMethods { path: String ) throws { self.on( - path, + .init(path), method: method ) { request, context in let (openAPIRequest, openAPIRequestBody) = try request.makeOpenAPIRequest(context: context)