Permalink
Browse files

fix(Visual Recognition): Fix deserialization error in getCoreMlModel

  • Loading branch information...
mkistler authored and AnthonyOliveri committed Oct 5, 2018
1 parent 3d8cd80 commit 9392b238b3e61bd2cf2459812cd1ed970a5e5307
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/VisualRecognitionV3/VisualRecognition.swift
@@ -677,7 +677,7 @@ public class VisualRecognition {
classifierID: String,
headers: [String: String]? = nil,
failure: ((Error) -> Void)? = nil,
success: @escaping (URL) -> Void)
success: @escaping (Data) -> Void)
{
// construct header parameters
var headerParameters = defaultHeaders
@@ -707,8 +707,8 @@ public class VisualRecognition {
)
// execute REST request
request.responseObject {
(response: RestResponse<URL>) in
request.responseData {
(response: RestResponse<Data>) in
switch response.result {
case .success(let retval): success(retval)
case .failure(let error): failure?(error)

0 comments on commit 9392b23

Please sign in to comment.