1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-07 09:09:49 +00:00

update dependencies

This commit is contained in:
2020-09-22 11:33:47 +06:00
parent 89dc7a4b2a
commit 46c33d5ec4
8 changed files with 15 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ internal val nonstrictJsonFormat = Json {
ignoreUnknownKeys = true
allowSpecialFloatingPointValues = true
useArrayPolymorphism = true
encodeDefaults = true
}
fun <T: Any> T.toJsonWithoutNulls(serializer: SerializationStrategy<T>): JsonObject = toJson(serializer).withoutNulls()

View File

@@ -13,6 +13,7 @@ private val nonstrictJsonFormat = Json {
ignoreUnknownKeys = true
allowSpecialFloatingPointValues = true
useArrayPolymorphism = true
encodeDefaults = true
}
class SimpleInputFilesTest {

View File

@@ -2,4 +2,6 @@ package com.github.insanusmokrassar.TelegramBotAPI
import kotlinx.serialization.json.Json
val TestsJsonFormat = Json {}
val TestsJsonFormat = Json {
encodeDefaults = true
}