ScalaBot/scalabot-meta
dependabot[bot] c972759ffb
build(deps): bump org.junit.jupiter:junit-jupiter-engine (#76)
Bumps [org.junit.jupiter:junit-jupiter-engine](https://github.com/junit-team/junit5) from 5.9.3 to 5.10.0.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.9.3...r5.10.0)

---
updated-dependencies:
- dependency-name: org.junit.jupiter:junit-jupiter-engine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-14 17:50:02 +08:00
..
api chore(meta): 确认由 Kotlin 版本更新导致的 api 变动. 2023-09-14 13:33:04 +08:00
src test(config): 补全对 ProxyConfig 的单元测试. 2022-08-04 19:13:45 +08:00
build.gradle.kts build(deps): bump org.junit.jupiter:junit-jupiter-engine (#76) 2023-09-14 17:50:02 +08:00
README.md docs(meta): 加一个 Readme. 2022-07-03 02:50:32 +08:00

scalabot-meta

本模块用于将 ScalaBot 的一些配置相关内容发布出去,以便于其他项目使用。

主要是配置类和相应的 Gson 序列化器(如果有,或者必要)。

关于序列化器

强烈建议使用序列化器!由于 Kotlin 与 Gson 之间的一些兼容性问题 (参见本提交 如果直接让 Gson 解析 Kotlin Data 类,将会出现一些潜在的问题(比如无法使用默认值)。
部分序列化器也可以帮助检查字段值是否合法,以防止因字段值不正确导致出现更多的问题 (例如 BotAccount 中,如果 token 的格式有误,那么获取 id 时将引发 NumberFormatException 异常)。