Skip to content

Commit 7b668ea

Browse files
committed
[fixes #228] Sending an array for fields with a single value is silently ignored by zendesk APIs
1 parent 048431d commit 7b668ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/zendesk/client/v2/model/CustomFieldValue.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ public class CustomFieldValue implements Serializable {
1717

1818
private Long id;
1919

20-
@JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY)
20+
@JsonFormat(with = {JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY,
21+
JsonFormat.Feature.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED})
2122
private String[] value;
2223

2324
public CustomFieldValue() {

0 commit comments

Comments
 (0)