Skip to content

Commit 0bd8fcc

Browse files
committed
fix(Compare and Comply): Fix property definition to avoid serialization errors
1 parent 33f5e47 commit 0bd8fcc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

compare-comply/src/main/java/com/ibm/watson/compare_comply/v1/model/KeyValuePair.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2019.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -12,6 +12,8 @@
1212
*/
1313
package com.ibm.watson.compare_comply.v1.model;
1414

15+
import java.util.List;
16+
1517
import com.ibm.cloud.sdk.core.service.model.GenericModel;
1618

1719
/**
@@ -20,7 +22,7 @@
2022
public class KeyValuePair extends GenericModel {
2123

2224
private Key key;
23-
private Value value;
25+
private List<Value> value;
2426

2527
/**
2628
* Gets the key.
@@ -36,11 +38,11 @@ public Key getKey() {
3638
/**
3739
* Gets the value.
3840
*
39-
* A value in a key-value pair.
41+
* A list of values in a key-value pair.
4042
*
4143
* @return the value
4244
*/
43-
public Value getValue() {
45+
public List<Value> getValue() {
4446
return value;
4547
}
4648
}

0 commit comments

Comments
 (0)