Skip to content

Commit a581900

Browse files
committed
fix: exclude null fields from JSON serialization (#8)
Closes #8.
1 parent ea542f5 commit a581900

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/pl/wtx/woocommerce/api/client/config/GsonConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ public static Gson createGson() {
1212

1313
return new GsonBuilder()
1414
.setStrictness(Strictness.LENIENT)
15-
.serializeNulls()
1615
.registerTypeAdapter(OffsetDateTime.class, new OffsetDateTimeAdapter())
1716
.create();
1817

1918
}
2019

21-
}
20+
}

0 commit comments

Comments
 (0)