From eb375a6d0f3418c3fb0dbfd386b57afd1f213c47 Mon Sep 17 00:00:00 2001 From: Julian Locke Date: Fri, 15 Dec 2023 18:34:32 -0500 Subject: [PATCH] Enable mocking entire api client --- stone/backends/swift_rsrc/SwiftClient.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stone/backends/swift_rsrc/SwiftClient.jinja b/stone/backends/swift_rsrc/SwiftClient.jinja index d85cc17e..29a7a389 100644 --- a/stone/backends/swift_rsrc/SwiftClient.jinja +++ b/stone/backends/swift_rsrc/SwiftClient.jinja @@ -6,7 +6,7 @@ import Foundation -public class {{ class_name }} { +public class {{ class_name }}: DropboxTransportClientOwning { public var client: {{ transport_client_name }} {% for var, type in namespace_fields %} @@ -14,7 +14,7 @@ public class {{ class_name }} { public var {{ var }}: {{ type }}Routes! {% endfor %} - public init(client: {{ transport_client_name }}) { + public required init(client: {{ transport_client_name }}) { self.client = client {% for var, type in namespace_fields %}