refactor(schema): 重构消息 schema 与 OpenAPI 生成流程
- 为 OneBot action 相关对象补充稳定 $id,提升 schema 复用与组件引用能力 - 补齐消息联合类型,纳入 location/xml/miniapp 等消息段定义 - 重构 napcat-schema 中 OpenAPI 生成逻辑,优化组件注册与缺失项报告 - openapi schema 文件行数从 36433 缩减到 23137(减少 13296 行,约 36.5%) - 统一 schema 结构与描述,降低后续扩展与文档生成维护成本
This commit is contained in:
1 parent
54266f97f8
commit
45652612b4
3 files changed
+566
-107
No files matched your search
@@ -325,8 +325,11 @@ export const OB11MessageDataSchema = Type.Union([
|
||||
OB11MessageDiceSchema,
|
||||
OB11MessageRPSSchema,
|
||||
OB11MessageContactSchema,
|
||||
OB11MessageLocationSchema,
|
||||
OB11MessageJsonSchema,
|
||||
OB11MessageXmlSchema,
|
||||
OB11MessageMarkdownSchema,
|
||||
OB11MessageMiniAppSchema,
|
||||
OB11MessageNodeSchema,
|
||||
OB11MessageForwardSchema,
|
||||
OB11MessageOnlineFileSchema,
|
||||
|
||||
Reference in new issue
Block a user