Skip to content

Commit

Permalink
replace default string representation of Iterable fields with pipe-de…
Browse files Browse the repository at this point in the history
…limited format (#382)

affects application/csv, application/kvp+json, and text/csv return types
fixes #375
  • Loading branch information
alexdunnjpl committed Oct 10, 2023
1 parent 679955d commit fbd12f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void setResponse(SearchHit hit, List<String> fields) {
WyriwygProductKeyValuePair kvp = new WyriwygProductKeyValuePair();
try {
kvp.setKey(SearchUtil.openPropertyToJsonProperty(pair.getKey()));
kvp.setValue(String.valueOf(pair.getValue()));
kvp.setValue(getStringValueOf(pair.getValue()));
product.addKeyValuePairsItem(kvp);
} catch (UnsupportedSearchProperty e) {
log.warn("openSearch property " + pair.getKey() + " is not supported, ignored");
Expand All @@ -80,7 +80,7 @@ public int setResponse(HitIterator hits, Summary summary, List<String> fields) {
WyriwygProductKeyValuePair kvp = new WyriwygProductKeyValuePair();
try {
kvp.setKey(SearchUtil.openPropertyToJsonProperty(pair.getKey()));
kvp.setValue(String.valueOf(pair.getValue()));
kvp.setValue(getStringValueOf(pair.getValue()));
product.addKeyValuePairsItem(kvp);
} catch (UnsupportedSearchProperty e) {
log.warn("openSearch property " + pair.getKey() + " is not supported, ignored");
Expand Down

0 comments on commit fbd12f4

Please sign in to comment.