Skip to content

contrib: 1127353621zxm-netizen - deepwrite-schema-fixes - #6

Merged
0liveiraaa merged 1 commit into
0liveiraaa:mainfrom
1127353621zxm-netizen:contrib/1127353621zxm-netizen-deepwrite-schema-fixes
Aug 16, 2026
Merged

contrib: 1127353621zxm-netizen - deepwrite-schema-fixes#6
0liveiraaa merged 1 commit into
0liveiraaa:mainfrom
1127353621zxm-netizen:contrib/1127353621zxm-netizen-deepwrite-schema-fixes

Conversation

@1127353621zxm-netizen

Copy link
Copy Markdown

dsh 插件工具 JSON Schema 合规性问题识别与修复。

内容

  • 发现:dsh 插件自定义工具参数 schema 里两种非法写法会被 pi-ai / Console Go provider 拒绝(400):
    1. 字段级 required: true 残留(required 只能出现在对象顶层)→ 报 true is not of type "array"
    2. 非法类型 type: 'json' → 报 "json" is not valid under any of the schemas listed in the 'anyOf' keyword
  • 交付contributions/1127353621zxm-netizen-deepwrite-schema-fixes/
    • README.md(两种错误的完整报错、根因、修复方式)
    • patches/makeTool-clean-properties.js(修复后的 makeTool:剥字段级 required,保留顶层 required 数组)
  • 根 README 索引行已在 PR contrib: 1127353621zxm-netizen - dsh-session-import-export #4 统一添加。

环境:DSH rc.6 / Windows 11 / opencode go 订阅 / deepseek-v4-flash / 本地插件 deepwrite-dsh

dsh 插件工具 JSON Schema 合规性修复:字段级 required 残留与 type:json 非法类型
+ 修复后的 makeTool 源码(patches/)
@0liveiraaa
0liveiraaa merged commit aceaa06 into 0liveiraaa:main Aug 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants