Don't fail on unknown properties.

This commit is contained in:
Kavin 2022-11-27 00:31:47 +00:00
parent 12c41980dd
commit 1b7d6a1472
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -1,5 +1,6 @@
package me.kavin.piped.consts;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.json.JsonMapper;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
@ -91,6 +92,7 @@ public class Constants {
public static final ObjectMapper mapper = JsonMapper.builder()
.addMixIn(Page.class, PageMixin.class)
.addMixIn(ListLinkHandler.class, ListLinkHandlerMixin.class)
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
.build();
public static final Object2ObjectOpenHashMap<String, String> hibernateProperties = new Object2ObjectOpenHashMap<>();