From 24671edef6c156604024a209b2c5f5d004a7617b Mon Sep 17 00:00:00 2001 From: Miguel Prieto Date: Tue, 2 Jul 2024 18:57:14 -0400 Subject: [PATCH] Adding back AfterburnerModule to ObjectMapperConfiguration. This instance is the one that Spring Boot is going to inject to its beans. --- .../conductor/common/config/ObjectMapperConfiguration.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/src/main/java/com/netflix/conductor/common/config/ObjectMapperConfiguration.java b/common/src/main/java/com/netflix/conductor/common/config/ObjectMapperConfiguration.java index a256e6882..9d698cb1b 100644 --- a/common/src/main/java/com/netflix/conductor/common/config/ObjectMapperConfiguration.java +++ b/common/src/main/java/com/netflix/conductor/common/config/ObjectMapperConfiguration.java @@ -16,6 +16,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.module.afterburner.AfterburnerModule; import jakarta.annotation.PostConstruct; @Configuration @@ -33,5 +34,6 @@ public void customizeDefaultObjectMapper() { objectMapper.setDefaultPropertyInclusion( JsonInclude.Value.construct( JsonInclude.Include.NON_NULL, JsonInclude.Include.ALWAYS)); + objectMapper.registerModule(new AfterburnerModule()); } }