From 2d554a987d103a0fa17eb41753cc266a3b23517b Mon Sep 17 00:00:00 2001 From: Alex Sokol / y9san9 Date: Wed, 1 Nov 2023 09:14:49 +0300 Subject: [PATCH] fix: added ignoreUnknownKeys for future releases --- .../kotlin/app/meetacy/sdk/engine/ktor/KtorMeetacyEngine.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/KtorMeetacyEngine.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/KtorMeetacyEngine.kt index 192f54e..6f942b8 100644 --- a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/KtorMeetacyEngine.kt +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/KtorMeetacyEngine.kt @@ -35,9 +35,13 @@ import kotlinx.serialization.json.Json public class KtorMeetacyEngine( private val baseUrl: Url, httpClient: HttpClient = HttpClient(), - private val json: Json = Json, + json: Json = Json, ) : MeetacyRequestsEngine { + private val json = Json(json) { + ignoreUnknownKeys = true + } + private val httpClient = httpClient.config { expectSuccess = true install(WebSockets)