Skip to content

Commit 766cf9e

Browse files
committed
GH-1163 Ignore FAIL_ON_UNKNOWN_PROPERTIES in Json conversion
The regression is due to tye fact that we no longer using boot provided ObjectMapper and instead rely on our own instance Resolves #1163
1 parent da91630 commit 766cf9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-cloud-function-context/src/main/java/org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ private JsonMapper jackson(ApplicationContext context) {
218218
mapper.registerModule(new JavaTimeModule());
219219
mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
220220
mapper.configure(DeserializationFeature.FAIL_ON_TRAILING_TOKENS, true);
221+
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
221222
return new JacksonMapper(mapper);
222223
}
223224
}

0 commit comments

Comments
 (0)