Revert "GH-1148 Remove manual setting of ObjectMapper feature"

This reverts commit 812c39eccb.
This commit is contained in:
Oleg Zhurakousky
2024-06-07 07:54:51 +02:00
parent 6ffae9397a
commit b17795dd66

View File

@@ -24,6 +24,7 @@ import java.util.function.Function;
import java.util.function.Supplier; import java.util.function.Supplier;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.databind.SerializationFeature;
import com.google.gson.Gson; import com.google.gson.Gson;
@@ -221,6 +222,7 @@ public class ContextFunctionCatalogAutoConfiguration {
mapper = new ObjectMapper(); mapper = new ObjectMapper();
} }
mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false); mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
mapper.configure(DeserializationFeature.FAIL_ON_TRAILING_TOKENS, true);
return new JacksonMapper(mapper); return new JacksonMapper(mapper);
} }
} }