From b269846dc834934a875e8c3ef3cb3af658cd1d85 Mon Sep 17 00:00:00 2001 From: Jeremie Bresson Date: Thu, 19 Sep 2024 08:09:37 +0200 Subject: [PATCH] Change TargetType mapping See https://github.com/gitlab4j/gitlab4j-api/issues/1148 --- src/main/java/org/gitlab4j/api/Constants.java | 2 +- src/test/resources/org/gitlab4j/api/event.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gitlab4j/api/Constants.java b/src/main/java/org/gitlab4j/api/Constants.java index f51047ef2..ea1aa6d56 100644 --- a/src/main/java/org/gitlab4j/api/Constants.java +++ b/src/main/java/org/gitlab4j/api/Constants.java @@ -557,7 +557,7 @@ public enum TargetType { ISSUE, MILESTONE, MERGE_REQUEST, NOTE, PROJECT, SNIPPET, USER; - private static JacksonJsonEnumHelper enumHelper = new JacksonJsonEnumHelper<>(TargetType.class, true, false, true); + private static JacksonJsonEnumHelper enumHelper = new JacksonJsonEnumHelper<>(TargetType.class, true, true, false); @JsonCreator public static TargetType forValue(String value) { diff --git a/src/test/resources/org/gitlab4j/api/event.json b/src/test/resources/org/gitlab4j/api/event.json index 06d44cc17..347c3c4db 100644 --- a/src/test/resources/org/gitlab4j/api/event.json +++ b/src/test/resources/org/gitlab4j/api/event.json @@ -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",