Skip to content

Commit 647637f

Browse files
authored
Merge pull request #77 from simple-robot/dev/fix-76
内部的默认Json实例增加属性配置 `coerceInputValues=true` 以解决非null属性遇到null值输入的问题
2 parents f55fb3d + f8baf1f commit 647637f

File tree

2 files changed

+4
-2
lines changed
  • buildSrc/src/main/kotlin
  • simbot-component-onebot-v11/simbot-component-onebot-v11-core/src/commonMain/kotlin/love/forte/simbot/component/onebot/v11/core

2 files changed

+4
-2
lines changed

buildSrc/src/main/kotlin/P.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ object P {
3737
override val description: String get() = DESCRIPTION
3838
override val homepage: String get() = HOMEPAGE
3939

40-
const val VERSION = "1.1.0"
41-
const val NEXT_VERSION = "1.1.1"
40+
const val VERSION = "1.1.1"
41+
const val NEXT_VERSION = "1.1.2"
4242

4343
override val snapshotVersion = "$NEXT_VERSION-SNAPSHOT"
4444
override val version = if (isSnapshot()) snapshotVersion else VERSION

simbot-component-onebot-v11/simbot-component-onebot-v11-core/src/commonMain/kotlin/love/forte/simbot/component/onebot/v11/core/OneBot11.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,7 @@ public object OneBot11 {
8585
prettyPrint = false
8686
serializersModule = OneBot11.serializersModule
8787
allowTrailingComma = true
88+
// since 1.1.1
89+
coerceInputValues = true
8890
}
8991
}

0 commit comments

Comments
 (0)