File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ let package = Package(
24
24
. library( name: " OpenAPIVapor " , targets: [ " OpenAPIVapor " ] )
25
25
] ,
26
26
dependencies: [
27
- . package ( url: " https://github.com/apple/swift-openapi-runtime.git " , . upToNextMinor ( from : " 0.3.0 " ) ) ,
27
+ . package ( url: " https://github.com/apple/swift-openapi-runtime.git " , exact : " 1.0.0-alpha.1 " ) ,
28
28
. package ( url: " https://github.com/vapor/vapor.git " , from: " 4.86.2 " ) ,
29
29
. package ( url: " https://github.com/apple/swift-atomics " , from: " 1.2.0 " )
30
30
] ,
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ extension OpenAPIRuntime.HTTPBody {
102
102
let contentLength = vaporRequest. headers. first ( name: " content-length " ) . map ( Int . init)
103
103
self . init (
104
104
vaporRequest. body. map ( \. readableBytesView) ,
105
- length: contentLength? . map { . known( $0 ) } ?? . unknown,
105
+ length: contentLength? . map { . known( numericCast ( $0 ) ) } ?? . unknown,
106
106
iterationBehavior: . single
107
107
)
108
108
}
@@ -175,7 +175,7 @@ extension Vapor.Response.Body {
175
175
}
176
176
switch body. length {
177
177
case let . known( count) :
178
- self = . init( stream: stream, count: count)
178
+ self = . init( stream: stream, count: Int ( clamping : count) )
179
179
case . unknown:
180
180
self = . init( stream: stream)
181
181
}
You can’t perform that action at this time.
0 commit comments