Skip to content

Commit a9c5c8b

Browse files
monikakusterigorbeslic
authored andcommitted
1501 - configure the ObjectMapper to detect all fields
1 parent 06a105c commit a9c5c8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/libs/core/commons/commons-util/src/main/java/com/bytechef/commons/util/constant/ObjectMapperConstants.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616

1717
package com.bytechef.commons.util.constant;
1818

19+
import com.fasterxml.jackson.annotation.JsonAutoDetect;
1920
import com.fasterxml.jackson.annotation.JsonInclude;
21+
import com.fasterxml.jackson.annotation.PropertyAccessor;
2022
import com.fasterxml.jackson.databind.DeserializationFeature;
2123
import com.fasterxml.jackson.databind.ObjectMapper;
2224
import com.fasterxml.jackson.databind.SerializationFeature;
@@ -39,6 +41,7 @@ public class ObjectMapperConstants {
3941
OBJECT_MAPPER.setSerializationInclusion(JsonInclude.Include.NON_NULL);
4042
OBJECT_MAPPER.registerModule(new JavaTimeModule());
4143
OBJECT_MAPPER.registerModule(new Jdk8Module());
44+
OBJECT_MAPPER.setVisibility(PropertyAccessor.FIELD, JsonAutoDetect.Visibility.ANY);
4245
}
4346
}
4447

0 commit comments

Comments
 (0)