Skip to content

Commit 414ea93

Browse files
committedNov 13, 2020
fixed some bugs in swift client
1 parent 875c675 commit 414ea93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎otohttp/templates/client.swift.plush

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class OtoClient {
6161
<%= for (object) in def.Objects { %>
6262
<%= format_comment_text(object.Comment) %>struct <%= object.Name %>: Encodable, Decodable {
6363
<%= for (field) in object.Fields { %>
64-
<%= format_comment_text(field.Comment) %> var <%= camelize_down(field.Name) %>: <%= field.Type.SwiftType %>?
64+
<%= format_comment_text(field.Comment) %> var <%= camelize_down(field.Name) %>: <%= if (field.Type.IsObject) { %><%= field.Type.TypeName %><% } else { %> <%= field.Type.SwiftType %><% } %>?
6565
<% } %>
6666
}
6767
<% } %>

0 commit comments

Comments
 (0)
Please sign in to comment.