From 3165f7f9475ca7435934406831dc20d52f64aab7 Mon Sep 17 00:00:00 2001 From: Dan van Kley Date: Sun, 1 Oct 2023 15:29:58 -0400 Subject: [PATCH] Ignore unknown properties in Plaid API JSON --- build.gradle.kts | 2 +- .../api/plaid/infrastructure/ApiClient.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index c4282bf..b3f6ffe 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,7 +14,7 @@ plugins { } group = "net.djvk" -version = "1.0.7" +version = "1.0.8" java.sourceCompatibility = JavaVersion.VERSION_17 repositories { diff --git a/src/main/kotlin/net/djvk/fireflyPlaidConnector2/api/plaid/infrastructure/ApiClient.kt b/src/main/kotlin/net/djvk/fireflyPlaidConnector2/api/plaid/infrastructure/ApiClient.kt index ca26bab..b6757bb 100644 --- a/src/main/kotlin/net/djvk/fireflyPlaidConnector2/api/plaid/infrastructure/ApiClient.kt +++ b/src/main/kotlin/net/djvk/fireflyPlaidConnector2/api/plaid/infrastructure/ApiClient.kt @@ -3,6 +3,7 @@ package net.djvk.fireflyPlaidConnector2.api.plaid.infrastructure import com.fasterxml.jackson.core.util.DefaultIndenter import com.fasterxml.jackson.core.util.DefaultPrettyPrinter +import com.fasterxml.jackson.databind.DeserializationFeature import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.databind.SerializationFeature import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule @@ -58,6 +59,7 @@ open class ApiClient( }) registerModule(JavaTimeModule()) configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false) + configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) } protected val UNSAFE_HEADERS = listOf() }