Skip to content

Commit

Permalink
fix(Visual Recognition): Fix incorrectly-defined errors property in I…
Browse files Browse the repository at this point in the history
…mage and ImageDetails
  • Loading branch information
lpatino10 committed Nov 18, 2019
1 parent 83a0802 commit 5ce250b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*/
package com.ibm.watson.visual_recognition.v4.model;

import java.util.List;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
Expand All @@ -22,7 +24,7 @@ public class Image extends GenericModel {
private ImageSource source;
private ImageDimensions dimensions;
private DetectedObjects objects;
private Error errors;
private List<Error> errors;

/**
* Gets the source.
Expand Down Expand Up @@ -60,11 +62,11 @@ public DetectedObjects getObjects() {
/**
* Gets the errors.
*
* Details about an error.
* A container for the problems in the request.
*
* @return the errors
*/
public Error getErrors() {
public List<Error> getErrors() {
return errors;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
package com.ibm.watson.visual_recognition.v4.model;

import java.util.Date;
import java.util.List;

import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;
Expand All @@ -28,7 +29,7 @@ public class ImageDetails extends GenericModel {
private Date created;
private ImageSource source;
private ImageDimensions dimensions;
private Error errors;
private List<Error> errors;
@SerializedName("training_data")
private TrainingDataObjects trainingData;

Expand Down Expand Up @@ -90,11 +91,9 @@ public ImageDimensions getDimensions() {
/**
* Gets the errors.
*
* Details about an error.
*
* @return the errors
*/
public Error getErrors() {
public List<Error> getErrors() {
return errors;
}

Expand Down

0 comments on commit 5ce250b

Please sign in to comment.