Skip to content

Commit

Permalink
[fixes #228] Sending an array for fields with a single value is silen…
Browse files Browse the repository at this point in the history
…tly ignored by zendesk APIs
  • Loading branch information
aheritier committed Jan 29, 2018
1 parent 048431d commit 7b668ea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public class CustomFieldValue implements Serializable {

private Long id;

@JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY)
@JsonFormat(with = {JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY,
JsonFormat.Feature.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED})
private String[] value;

public CustomFieldValue() {
Expand Down

0 comments on commit 7b668ea

Please sign in to comment.