Skip to content

Commit

Permalink
changes for #161
Browse files Browse the repository at this point in the history
  • Loading branch information
yonaskolb committed Nov 19, 2019
1 parent defe317 commit 2a48a21
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- Fixed responses from silently failing to parse when missing a `description`, which is now an optional property that defaults to an empty string #193
- Add missing custom model protocol name #191
- Fixed missing customization of JSONEncoder instance to encode request's body #147
- Fixed string uploads #161

## 4.2.0

Expand Down
2 changes: 2 additions & 0 deletions Specs/Petstore/generated/Swift/Sources/APIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ public class APIClient {
multipartFormData.append(url, withName: name)
} else if let data = value as? Data {
multipartFormData.append(data, withName: name)
} else if let string = value as? String {
multipartFormData.append(Data(string.utf8), withName: name)
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions Specs/PetstoreTest/generated/Swift/Sources/APIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ public class APIClient {
multipartFormData.append(url, withName: name)
} else if let data = value as? Data {
multipartFormData.append(data, withName: name)
} else if let string = value as? String {
multipartFormData.append(Data(string.utf8), withName: name)
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions Specs/Rocket/generated/Swift/Sources/APIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ public class APIClient {
multipartFormData.append(url, withName: name)
} else if let data = value as? Data {
multipartFormData.append(data, withName: name)
} else if let string = value as? String {
multipartFormData.append(Data(string.utf8), withName: name)
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions Specs/TBX/generated/Swift/Sources/APIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ public class APIClient {
multipartFormData.append(url, withName: name)
} else if let data = value as? Data {
multipartFormData.append(data, withName: name)
} else if let string = value as? String {
multipartFormData.append(Data(string.utf8), withName: name)
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions Specs/TFL/generated/Swift/Sources/APIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ public class APIClient {
multipartFormData.append(url, withName: name)
} else if let data = value as? Data {
multipartFormData.append(data, withName: name)
} else if let string = value as? String {
multipartFormData.append(Data(string.utf8), withName: name)
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions Specs/TestSpec/generated/Swift/Sources/APIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ public class APIClient {
multipartFormData.append(url, withName: name)
} else if let data = value as? Data {
multipartFormData.append(data, withName: name)
} else if let string = value as? String {
multipartFormData.append(Data(string.utf8), withName: name)
}
}
},
Expand Down

0 comments on commit 2a48a21

Please sign in to comment.