From 8e73b8468909f4c00a50687d7ae123e3b2f997d0 Mon Sep 17 00:00:00 2001 From: KjellBerlin Date: Fri, 30 Aug 2024 19:25:18 +0200 Subject: [PATCH] Ignore other properties everywhere --- .../kotlin/com/carbonara/core/slack/SlackWebhookController.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/com/carbonara/core/slack/SlackWebhookController.kt b/src/main/kotlin/com/carbonara/core/slack/SlackWebhookController.kt index 3b596ed..f04fd59 100644 --- a/src/main/kotlin/com/carbonara/core/slack/SlackWebhookController.kt +++ b/src/main/kotlin/com/carbonara/core/slack/SlackWebhookController.kt @@ -2,7 +2,6 @@ package com.carbonara.core.slack import com.carbonara.core.order.OrderService import com.fasterxml.jackson.annotation.JsonIgnoreProperties -import com.fasterxml.jackson.annotation.JsonValue import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper import mu.KotlinLogging import org.springframework.http.ResponseEntity @@ -37,7 +36,7 @@ data class SlackWebhookRequestBody( val payload: String ) - +@JsonIgnoreProperties(ignoreUnknown = true) data class SlackPayload( val actions: List )