Skip to content

Commit

Permalink
Enable mocking entire api client
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlocke committed Dec 15, 2023
1 parent 3e08b02 commit eb375a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stone/backends/swift_rsrc/SwiftClient.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

import Foundation

public class {{ class_name }} {
public class {{ class_name }}: DropboxTransportClientOwning {
public var client: {{ transport_client_name }}

{% for var, type in namespace_fields %}
/// Routes within the {{ var }} namespace. See {{ type }}Routes for details.
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 %}
Expand Down

0 comments on commit eb375a6

Please sign in to comment.