Skip to content

Commit

Permalink
Merge pull request #215 from messagebird/Issue-213_verifyAPI
Browse files Browse the repository at this point in the history
resolves issue #213
  • Loading branch information
denizkilic authored Nov 4, 2022
2 parents 54a1443 + 64183ca commit ca08257
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions api/src/main/java/com/messagebird/MessageBirdServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.*;
import com.messagebird.exceptions.GeneralException;
import com.messagebird.exceptions.NotFoundException;
import com.messagebird.exceptions.UnauthorizedException;
Expand Down Expand Up @@ -593,6 +590,7 @@ public <P> HttpURLConnection getConnection(final String serviceUrl, final P body
connection.setRequestProperty("Content-Type", "application/json");
ObjectMapper mapper = new ObjectMapper();
mapper.setSerializationInclusion(Include.NON_NULL);
mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
// Specifically set the date format for POST requests so scheduled
// messages and other things relying on specific date formats don't
// fail when sending.
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/com/messagebird/objects/Language.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public enum Language {
EN_US("en-us"),
ES_ES("es-es"),
FR_FR("fr-fr"),
RU_RU("ru_ru"),
RU_RU("ru-ru"),
ZH_CN("zh-cn"),
EN_AU("en-au"),
ES_MX("es-mx"),
Expand Down

0 comments on commit ca08257

Please sign in to comment.