diff --git a/samples/client/petstore/swift6/alamofireLibrary/SwaggerClientTests/SwaggerClient/AppDelegate.swift b/samples/client/petstore/swift6/alamofireLibrary/SwaggerClientTests/SwaggerClient/AppDelegate.swift index 57d028db89a7..801cf3e84fc0 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/SwaggerClientTests/SwaggerClient/AppDelegate.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/SwaggerClientTests/SwaggerClient/AppDelegate.swift @@ -18,7 +18,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { // Override point for customization after application launch. // Customize requestBuilderFactory - PetstoreClientAPI.shared.requestBuilderFactory = BearerRequestBuilderFactory() + OpenAPIClient.shared.requestBuilderFactory = BearerRequestBuilderFactory() return true } diff --git a/samples/client/petstore/swift6/urlsessionLibrary/SwaggerClientTests/SwaggerClient/AppDelegate.swift b/samples/client/petstore/swift6/urlsessionLibrary/SwaggerClientTests/SwaggerClient/AppDelegate.swift index 57d028db89a7..801cf3e84fc0 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/SwaggerClientTests/SwaggerClient/AppDelegate.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/SwaggerClientTests/SwaggerClient/AppDelegate.swift @@ -18,7 +18,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { // Override point for customization after application launch. // Customize requestBuilderFactory - PetstoreClientAPI.shared.requestBuilderFactory = BearerRequestBuilderFactory() + OpenAPIClient.shared.requestBuilderFactory = BearerRequestBuilderFactory() return true } diff --git a/samples/client/petstore/swift6/urlsessionLibrary/SwaggerClientTests/SwaggerClient/BearerDecodableRequestBuilder.swift b/samples/client/petstore/swift6/urlsessionLibrary/SwaggerClientTests/SwaggerClient/BearerDecodableRequestBuilder.swift index af24485b925b..a33f8dcc1165 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/SwaggerClientTests/SwaggerClient/BearerDecodableRequestBuilder.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/SwaggerClientTests/SwaggerClient/BearerDecodableRequestBuilder.swift @@ -22,7 +22,7 @@ class BearerRequestBuilderFactory: RequestBuilderFactory { class BearerRequestBuilder: URLSessionRequestBuilder, @unchecked Sendable { @discardableResult - override func execute(_ apiResponseQueue: DispatchQueue = PetstoreClientAPI.shared.apiResponseQueue, _ completion: @Sendable @escaping (Result, ErrorResponse>) -> Void) -> RequestTask { + override func execute(_ apiResponseQueue: DispatchQueue = OpenAPIClient.shared.apiResponseQueue, _ completion: @Sendable @escaping (Result, ErrorResponse>) -> Void) -> RequestTask { guard self.requiresAuthentication else { return super.execute(apiResponseQueue, completion) @@ -79,7 +79,7 @@ class BearerRequestBuilder: URLSessionRequestBuilder, @unchecked Sendable class BearerDecodableRequestBuilder: URLSessionDecodableRequestBuilder, @unchecked Sendable { @discardableResult - override func execute(_ apiResponseQueue: DispatchQueue = PetstoreClientAPI.shared.apiResponseQueue, _ completion: @Sendable @escaping (Result, ErrorResponse>) -> Void) -> RequestTask { + override func execute(_ apiResponseQueue: DispatchQueue = OpenAPIClient.shared.apiResponseQueue, _ completion: @Sendable @escaping (Result, ErrorResponse>) -> Void) -> RequestTask { guard self.requiresAuthentication else { return super.execute(apiResponseQueue, completion)