Skip to content

Commit

Permalink
fix KXS encodeDefaults for jaicp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Denire committed Dec 28, 2020
1 parent 6fadf3c commit ba88f6a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ package com.justai.jaicf.channel.jaicp

import com.justai.jaicf.channel.jaicp.dto.JaicpBotRequest
import com.justai.jaicf.channel.jaicp.dto.JaicpBotResponse
import com.justai.jaicf.channel.jaicp.dto.JaicpPollingRequest
import com.justai.jaicf.channel.jaicp.dto.JaicpPollingResponse
import kotlinx.serialization.json.Json

internal val JSON = Json { ignoreUnknownKeys = true; isLenient = true; encodeDefaults = true }
internal val JSON = Json { ignoreUnknownKeys = true; isLenient = true }

internal fun String.asJaicpBotRequest() = JSON.decodeFromString(JaicpBotRequest.serializer(), this)

Expand Down

0 comments on commit ba88f6a

Please sign in to comment.