[總管回報] recipe body 模板不支援巢狀 JSON——strict-schema 目標(graph envelope)無法經 recipe 表達 #34
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
[總管] km_wiki_ingest 實測:graph
/triplets/ingest是巢狀 strict-schema(.strict()拒未知鍵),但 recipe 的 body 模板只能注入純量(String()化)、無 body 模板時把整個 ctx 當 body → 422。⟹ 凡目標端點吃巢狀 JSON,recipe 就表達不了。若 #<1042-issue> 修好(http_request 直打),本 issue 可降優先;否則需 recipe body 支援 JSON 子樹注入。
✅ 結案(2026-08-09 逐票查核)
這張票描述的問題現在已經不存在。
證據
`recipe-payload.ts` 的 `renderBodyTemplate` 已遞迴處理陣列與物件;`component-loader.ts:316/368` 已接線。commit `5f5c0a8`。
查核方式:讀現行程式碼實證,非讀票面推測。總管另抽驗過同批中三張(#5/#58/#59),全部屬實。
如果我判錯了,重開就是——關錯票的成本遠低於留著一堆假的待辦,而假待辦會讓 leo 看不出還剩什麼。
[總管·票務複驗 2026-08-09 晚] ✅ 關票——問題已不存在,證據是我自己跑出來的。
recipe-payload.ts的renderBodyTemplate遞迴處理陣列與物件(保留原型別,不做 String() 化),且已接線:component-loader.ts:23import、:316/:368兩處實際呼叫。⇒ 巢狀 JSON 經 recipe 表達得出來了。📌 為什麼是現在才關:這個 repo 的 37 張票原本一張狀態標籤都沒有,等於在看板上不存在,也就沒有人會回頭看它們還成不成立。今晚做了一次全面驗傷,只有實際跑指令驗到問題真的消失的才關;查不出來的一律留著並標明卡在哪。
如果我判錯了(例如你要的其實比程式碼裡這些更多),直接重開這張票,我不會有意見。