Skip to content

Commit

Permalink
Merge pull request #422 from ggrell/fix-421-enum-case-issue
Browse files Browse the repository at this point in the history
Fixes #421 - Enum case doesn't match for Pull Request Reviews
  • Loading branch information
kohsuke authored May 1, 2018
2 parents bb7302c + 9cc400a commit 33d9422
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/kohsuke/github/GitHub.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
package org.kohsuke.github;

import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.introspect.VisibilityChecker.Std;
import com.infradna.tool.bridge_method_injector.WithBridgeMethods;
Expand Down Expand Up @@ -909,6 +910,7 @@ public Reader renderMarkdown(String text) throws IOException {
static {
MAPPER.setVisibilityChecker(new Std(NONE, NONE, NONE, NONE, ANY));
MAPPER.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
MAPPER.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_ENUMS, true);
}

/* package */ static final String GITHUB_URL = "https://api.github.com";
Expand Down

0 comments on commit 33d9422

Please sign in to comment.