From 1b7d6a14720046d19d514355ab3e0ed9313d4ef5 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 27 Nov 2022 00:31:47 +0000 Subject: [PATCH] Don't fail on unknown properties. --- src/main/java/me/kavin/piped/consts/Constants.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/me/kavin/piped/consts/Constants.java b/src/main/java/me/kavin/piped/consts/Constants.java index e6792f5..2aea2c5 100644 --- a/src/main/java/me/kavin/piped/consts/Constants.java +++ b/src/main/java/me/kavin/piped/consts/Constants.java @@ -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 hibernateProperties = new Object2ObjectOpenHashMap<>();