mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Don't fail on unknown properties.
This commit is contained in:
parent
12c41980dd
commit
1b7d6a1472
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
package me.kavin.piped.consts;
|
package me.kavin.piped.consts;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import com.fasterxml.jackson.databind.json.JsonMapper;
|
import com.fasterxml.jackson.databind.json.JsonMapper;
|
||||||
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
|
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
|
||||||
|
@ -91,6 +92,7 @@ public class Constants {
|
||||||
public static final ObjectMapper mapper = JsonMapper.builder()
|
public static final ObjectMapper mapper = JsonMapper.builder()
|
||||||
.addMixIn(Page.class, PageMixin.class)
|
.addMixIn(Page.class, PageMixin.class)
|
||||||
.addMixIn(ListLinkHandler.class, ListLinkHandlerMixin.class)
|
.addMixIn(ListLinkHandler.class, ListLinkHandlerMixin.class)
|
||||||
|
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
public static final Object2ObjectOpenHashMap<String, String> hibernateProperties = new Object2ObjectOpenHashMap<>();
|
public static final Object2ObjectOpenHashMap<String, String> hibernateProperties = new Object2ObjectOpenHashMap<>();
|
||||||
|
|
Loading…
Reference in a new issue