GH-1189 Fix regression with ObjectMapper configurationb

Resolves #1189
This commit is contained in:
Oleg Zhurakousky
2024-10-16 16:49:37 +02:00
parent f637b9863d
commit 63cdb68b3a
2 changed files with 63 additions and 1 deletions

View File

@@ -223,8 +223,9 @@ public class ContextFunctionCatalogAutoConfiguration {
}
catch (Exception e) {
mapper = new ObjectMapper();
mapper.registerModule(new JavaTimeModule());
}
mapper.registerModule(new JavaTimeModule());
mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
mapper.configure(DeserializationFeature.FAIL_ON_TRAILING_TOKENS, true);
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);