mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-07-01 21:07:25 +00:00
[Update] Core 完善 JsonFrameworkDescriptorSerializerTest 单元测试;
[Add] badAuthor-InvalidField-framework.json, badAuthor-MissingField-framework.json, badAuthor-NonObject-framework.json 添加 author 属性错误解析数据; [Add] badBotCode-NonObject-framework.json 添加 botCode 属性错误解析数据; [Add] badPlatform-MissingField-Identify-framework.json, badPlatform-MissingField-Name-framework.json, badPlatform-NonObject-framework.json 添加 platform 属性错误解析数据; [Add] badPluginDependency-NonPrimitive-framework.json, badPluginDependency-NonString-framework.json 添加 pluginDependency 属性错误解析数据; [Add] JsonFrameworkDescriptorSerializerTest 添加多个异常情况的测试项; [Add] test-framework.json 添加软错误(不影响解析过程)数据以检查软错误情况;
This commit is contained in:
@ -0,0 +1,27 @@
|
||||
// 该文件为 framework.json 格式完整示例, 非测试用文件.
|
||||
{
|
||||
"id": "cgj-mirai",
|
||||
"description": "test",
|
||||
"version": "3.0.0-alpha",
|
||||
"requiresVersion": "=>3.0.0",
|
||||
"provider": "Github@LamGC, Github@mamoe",
|
||||
"license": "AGPL-3.0",
|
||||
"frameworkClass": "com.example.FrameworkMain",
|
||||
"dependencies": [
|
||||
"RequireDepend@1.0.0",
|
||||
"OptionalDepend?@1.0.0"
|
||||
],
|
||||
|
||||
"platform": {
|
||||
"name": "Tencent QQ",
|
||||
"identify": "qq"
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "LamGC",
|
||||
"url": "https://github.com/LamGC",
|
||||
"email": "lam827@lamgc.net"
|
||||
}
|
||||
],
|
||||
"botCode": "invalid value"
|
||||
}
|
Reference in New Issue
Block a user