From 4ab639526edb03b8bf72ae81c9915bf2b5731125 Mon Sep 17 00:00:00 2001 From: Slepland Date: Tue, 14 Jul 2026 14:52:26 +0200 Subject: [PATCH] fix(cv): make version field optional in ComicVineSearchResult ComicVine's API stopped including the 'version' field in search responses, causing kotlinx.serialization.MissingFieldException. Making the field nullable with a default value (String? = null) allows the serializer to gracefully handle responses missing the field without breaking metadata matching. --- .../snd/komf/providers/comicvine/model/ComicVineSearchResult.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komf-core/src/commonMain/kotlin/snd/komf/providers/comicvine/model/ComicVineSearchResult.kt b/komf-core/src/commonMain/kotlin/snd/komf/providers/comicvine/model/ComicVineSearchResult.kt index c4e97046..ca93cb27 100644 --- a/komf-core/src/commonMain/kotlin/snd/komf/providers/comicvine/model/ComicVineSearchResult.kt +++ b/komf-core/src/commonMain/kotlin/snd/komf/providers/comicvine/model/ComicVineSearchResult.kt @@ -15,6 +15,6 @@ class ComicVineSearchResult( @SerialName("status_code") val statusCode: Int, val results: T, - val version: String, + val version: String? = null, )