Skip to content

Commit

Permalink
Enable mocking entire api client (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlocke committed Aug 27, 2024
1 parent 698cb31 commit e20e8b2
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 e20e8b2

Please sign in to comment.