Skip to content

Commit

Permalink
Change TargetType mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jmini committed Sep 19, 2024
1 parent 7a224e3 commit b269846
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/gitlab4j/api/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ public enum TargetType {

ISSUE, MILESTONE, MERGE_REQUEST, NOTE, PROJECT, SNIPPET, USER;

private static JacksonJsonEnumHelper<TargetType> enumHelper = new JacksonJsonEnumHelper<>(TargetType.class, true, false, true);
private static JacksonJsonEnumHelper<TargetType> enumHelper = new JacksonJsonEnumHelper<>(TargetType.class, true, true, false);

@JsonCreator
public static TargetType forValue(String value) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/org/gitlab4j/api/event.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"project_id": 15,
"action_name": "pushed",
"target_id": 830,
"target_type": "Merge_request",
"target_type": "MergeRequest",
"author_id": 1,
"author": {
"name": "Dmitriy Zaporozhets",
Expand Down

0 comments on commit b269846

Please sign in to comment.