Skip to content

Commit

Permalink
Merge pull request #36 from orkes-io/allow_nulls
Browse files Browse the repository at this point in the history
allow null values to be seriealized
  • Loading branch information
v1r3n authored Sep 27, 2022
2 parents c6864b5 + e425e88 commit 784e630
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/io/orkes/conductor/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

import javax.net.ssl.*;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.threeten.bp.LocalDate;
Expand Down Expand Up @@ -97,6 +99,8 @@ public ApiClient(String basePath) {
httpClient = new OkHttpClient();
verifyingSsl = true;
json = new JSON();
GsonBuilder builder = new GsonBuilder().serializeNulls();
json.setGson(builder.create());
authentications = new HashMap<String, Authentication>();
}

Expand Down

0 comments on commit 784e630

Please sign in to comment.