Skip to content

fix(cv): make version field optional in ComicVineSearchResult#318

Open
Slepland wants to merge 1 commit into
Snd-R:masterfrom
Slepland:master
Open

fix(cv): make version field optional in ComicVineSearchResult#318
Slepland wants to merge 1 commit into
Snd-R:masterfrom
Slepland:master

Conversation

@Slepland

Copy link
Copy Markdown

Fix

ComicVine's API stopped including the version field in search responses, causing kotlinx.serialization.MissingFieldException:

Every search request returns HTTP 200 but fails to deserialize, so all ComicVine metadata matching silently breaks.

Change

Made the version field nullable with a default value (String? = null) so the serializer gracefully handles responses missing the field.

Testing

Verified against live ComicVine API — after the fix, search results deserialize correctly even when the version field is absent.

Closes #... (no matching issue found)

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant