Skip to content

Commit

Permalink
Add default values to the API model
Browse files Browse the repository at this point in the history
  • Loading branch information
fobo66 committed Nov 16, 2024
1 parent 26fde98 commit 9e78988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import kotlinx.serialization.Serializable
@Immutable
@Parcelize
data class Claim(
val text: String,
val text: String? = null,
val claimant: String? = null,
@TypeParceler<Instant?, InstantParceler>() val claimDate: Instant? = null,
val claimReview: List<ClaimReview> = emptyList()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package dev.fobo66.factcheckerassistant.api.models
import kotlinx.serialization.Serializable

@Serializable
data class FactCheckResponse(val claims: List<Claim>?, val nextPageToken: String?)
data class FactCheckResponse(val claims: List<Claim>? = null, val nextPageToken: String? = null)

0 comments on commit 9e78988

Please sign in to comment.