From 4686de3351ffcdacfc9a45da942da6fc77edd00c Mon Sep 17 00:00:00 2001 From: Honza Dvorsky Date: Mon, 23 Oct 2023 15:45:34 +0200 Subject: [PATCH 1/2] Bump swift-format to 5.9 --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 4b7014a..3cc66ea 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -17,7 +17,7 @@ RUN mkdir -p $HOME/.tools RUN echo 'export PATH="$HOME/.tools:$PATH"' >> $HOME/.profile # swift-format -ARG swiftformat_version=508.0.0 +ARG swiftformat_version=509.0.0 RUN git clone --branch $swiftformat_version --depth 1 https://github.com/apple/swift-format $HOME/.tools/swift-format-source RUN cd $HOME/.tools/swift-format-source && swift build -c release -RUN ln -s $HOME/.tools/swift-format-source/.build/release/swift-format $HOME/.tools/swift-format \ No newline at end of file +RUN ln -s $HOME/.tools/swift-format-source/.build/release/swift-format $HOME/.tools/swift-format From a7e9c14086083727570a623d7dca6dc097288857 Mon Sep 17 00:00:00 2001 From: Honza Dvorsky Date: Tue, 24 Oct 2023 08:50:26 +0200 Subject: [PATCH 2/2] Add missing documentation --- Tests/OpenAPIURLSessionTests/URLSessionTransportTests.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/OpenAPIURLSessionTests/URLSessionTransportTests.swift b/Tests/OpenAPIURLSessionTests/URLSessionTransportTests.swift index c06f11d..4006098 100644 --- a/Tests/OpenAPIURLSessionTests/URLSessionTransportTests.swift +++ b/Tests/OpenAPIURLSessionTests/URLSessionTransportTests.swift @@ -115,12 +115,16 @@ class MockURLProtocol: URLProtocol { static let recordedHTTPRequests = LockedValueBox<[URLRequest]>([]) + /// Determines whether this protocol can handle the given request. override class func canInit(with request: URLRequest) -> Bool { true } + /// Returns a canonical version of the given request. override class func canonicalRequest(for request: URLRequest) -> URLRequest { request } + /// Stops protocol-specific loading of a request. override func stopLoading() {} + /// Starts protocol-specific loading of a request. override func startLoading() { Self.recordedHTTPRequests.withValue { $0.append(self.request) } guard let url = self.request.url else { return }