Skip to content

Commit 5b65724

Browse files
committed
Fix build errors
1 parent 4d6716f commit 5b65724

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Sources/OpenAPIRuntime/URICoder/Decoding/URIValueFromNodeDecoder+Unkeyed.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ struct URIUnkeyedDecodingContainer {
2121

2222
/// The index of the next item to be decoded.
2323
private var index: URIParsedValueArray.Index = 0
24+
25+
/// Creates a new unkeyed container ready to decode the first key.
26+
/// - Parameter decoder: The underlying decoder.
27+
init(decoder: URIValueFromNodeDecoder) { self.decoder = decoder }
2428
}
2529

2630
extension URIUnkeyedDecodingContainer {

Sources/OpenAPIRuntime/URICoder/Parsing/URIParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct URIParser: Sendable {
2727
/// - Parameters:
2828
/// - configuration: The configuration instructing the parser how to interpret the raw string.
2929
/// - data: The string to parse.
30-
init(configuration: URICoderConfiguration, data: Substring, ) {
30+
init(configuration: URICoderConfiguration, data: Substring) {
3131
self.configuration = configuration
3232
self.data = data
3333
}

0 commit comments

Comments
 (0)