Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
IRus committed Aug 19, 2023
1 parent 9b11b38 commit 07f0a81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/kotlin/io/heapy/kotbot/bot/_kotbot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import io.ktor.http.HttpHeaders
import io.ktor.http.isSuccess
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
Expand All @@ -35,6 +36,7 @@ public data class Kotbot(
public val json: Json = kotbotJson,
)

@OptIn(ExperimentalSerializationApi::class)
public val kotbotJson: Json = Json {
ignoreUnknownKeys = true
encodeDefaults = true
Expand Down

0 comments on commit 07f0a81

Please sign in to comment.