ScalaBot/scalabot-meta
dependabot[bot] b8901d73f2
build(deps): bump com.google.code.gson:gson from 2.9.0 to 2.10.1
Bumps [com.google.code.gson:gson](https://github.com/google/gson) from 2.9.0 to 2.10.1.
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/gson/compare/gson-parent-2.9.0...gson-parent-2.10.1)

---
updated-dependencies:
- dependency-name: com.google.code.gson:gson
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-21 08:03:44 +00:00
..
src test(config): 补全对 ProxyConfig 的单元测试. 2022-08-04 19:13:45 +08:00
build.gradle.kts build(deps): bump com.google.code.gson:gson from 2.9.0 to 2.10.1 2023-02-21 08:03:44 +00: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 异常)。