From f206b24b38dc351a3feb1d74d9c4e62f241174ba Mon Sep 17 00:00:00 2001 From: Ivan-Shaml <72102779+Ivan-Shaml@users.noreply.github.com> Date: Wed, 25 Dec 2024 22:43:59 +0200 Subject: [PATCH] fix(jackson): fix deserialization for newer versions of jackson * Preparation for Spring Boot v3.4 --- src/main/java/com/faforever/api/error/ErrorResult.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/faforever/api/error/ErrorResult.java b/src/main/java/com/faforever/api/error/ErrorResult.java index 056ad92b8..bc8b5b729 100644 --- a/src/main/java/com/faforever/api/error/ErrorResult.java +++ b/src/main/java/com/faforever/api/error/ErrorResult.java @@ -1,5 +1,7 @@ package com.faforever.api.error; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonCreator.Mode; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; @@ -11,7 +13,7 @@ @Data @RequiredArgsConstructor -@AllArgsConstructor +@AllArgsConstructor(onConstructor_={@JsonCreator(mode = Mode.DELEGATING)}) @JsonInclude(JsonInclude.Include.NON_NULL) public class ErrorResult { @JsonProperty("status")