Skip to content

Commit

Permalink
Serialize empty collections/maps/strings + fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Jan 19, 2024
1 parent 7c8a66d commit 9b7a763
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static ObjectMapper getInstance() {
instance.registerModule(new Jdk8Module());
instance.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
instance.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE);
instance.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);
instance.setSerializationInclusion(JsonInclude.Include.NON_ABSENT);
}
return instance;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public void testRunsClient() {
CreateThreadAndRunRequest.newBuilder()
.assistantId(assistant.id())
.thread(
CreateThreadAndRunRequest.Thread.newBuilder()
CreateThreadRequest.newBuilder()
.messages(
List.of(
CreateThreadRequest.Message.newBuilder()
Expand Down

0 comments on commit 9b7a763

Please sign in to comment.