Skip to content

Commit

Permalink
allows case insensitive enums
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbranham committed Apr 27, 2020
1 parent 28f6d9a commit 7f11741
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -10,6 +10,7 @@
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.json.JsonMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
Expand All @@ -28,6 +29,7 @@ private JsonUtil() {
this.mapper = JsonMapper.builder()
.enable(JsonReadFeature.ALLOW_UNESCAPED_CONTROL_CHARS)
.enable(JsonParser.Feature.ALLOW_SINGLE_QUOTES)
.enable(MapperFeature.ACCEPT_CASE_INSENSITIVE_ENUMS)
.build();
}

Expand Down

0 comments on commit 7f11741

Please sign in to comment.