Skip to content

Commit

Permalink
Merge pull request #77 from simple-robot/dev/fix-76
Browse files Browse the repository at this point in the history
内部的默认Json实例增加属性配置 `coerceInputValues=true` 以解决非null属性遇到null值输入的问题
  • Loading branch information
ForteScarlet authored Aug 4, 2024
2 parents f55fb3d + f8baf1f commit 647637f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/P.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ object P {
override val description: String get() = DESCRIPTION
override val homepage: String get() = HOMEPAGE

const val VERSION = "1.1.0"
const val NEXT_VERSION = "1.1.1"
const val VERSION = "1.1.1"
const val NEXT_VERSION = "1.1.2"

override val snapshotVersion = "$NEXT_VERSION-SNAPSHOT"
override val version = if (isSnapshot()) snapshotVersion else VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@ public object OneBot11 {
prettyPrint = false
serializersModule = OneBot11.serializersModule
allowTrailingComma = true
// since 1.1.1
coerceInputValues = true
}
}

0 comments on commit 647637f

Please sign in to comment.