File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/main/java/de/rwth/idsg/steve/ocpp/ws Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 3030
3131import static com .fasterxml .jackson .core .JsonGenerator .Feature .WRITE_BIGDECIMAL_AS_PLAIN ;
3232import static com .fasterxml .jackson .databind .DeserializationFeature .FAIL_ON_NULL_FOR_PRIMITIVES ;
33+ import static com .fasterxml .jackson .databind .DeserializationFeature .FAIL_ON_UNKNOWN_PROPERTIES ;
3334
3435/**
3536 * Because ObjectMapper can and should be reused, if config does not change after init.
@@ -57,6 +58,8 @@ public enum JsonObjectMapper {
5758
5859 mapper .configure (WRITE_BIGDECIMAL_AS_PLAIN , true );
5960
61+ mapper .configure (FAIL_ON_UNKNOWN_PROPERTIES , false );
62+
6063 mapper .registerModule (new CustomStringModule ());
6164 mapper .registerModule (new Ocpp12JacksonModule ());
6265 mapper .registerModule (new Ocpp15JacksonModule ());
You can’t perform that action at this time.
0 commit comments