Import should not fail if JSON contains unknown properties.
parent
2533c16196
commit
7b178f030c
|
|
@ -19,6 +19,7 @@
|
|||
package org.libreccm.imexport;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
||||
|
||||
|
|
@ -64,7 +65,8 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
|
|||
|
||||
public AbstractEntityImExporter() {
|
||||
objectMapper = new ObjectMapper()
|
||||
.registerModule(new JavaTimeModule());
|
||||
.registerModule(new JavaTimeModule())
|
||||
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
|
||||
requiredEntities = new HashSet<>();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue