Action schema defines links inconsistently with Thing Description
還沒有人認領這個 Issue。
評估
研究方向
先檢視目前的 Action 回應 schema 以及 Thing Description 對 links 的定義,接著追蹤現有 Action 回應的任何相容性預期。當專案決定是否應對齊這些表示方式,且由此產生的行為、文件與測試反映該決定時,即完成此項工作。
由索引模型根據 Issue 內容生成。
描述
Thing Description defines the links property of a Thing to be an array of objects, each with "rel" and "href" properties (among others). Would it make sense for Actions to follow suit? This isn't a normative part of the spec, but it would feel quite sensible. It would mean changing from:
{
"status": "completed",
"output": true,
"links": {
"self": {
"href": "https://my_host/actions/id"
}
}
}
to
{
"status": "completed",
"output": true,
"links": [
{"rel": "self", "href":"https://my_host/actions/id"},
]
}
The resulting object is slightly less convenient (I can't just do action["links"]["self"]["href"]) but it is more in keeping with the standard.
This is really a decision for LabThings-FastAPI, but I'm keen not to break compatibility if there was a good reason for doing it the current way.
- 主要語言
- Python
- 星號
- 19
- 分支
- 2
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
labthings/python-labthings 的其他 Issue
-
難度 5/5 一週以上 新手友好度 20/100
labthings/python-labthings#323 · 3 則留言 ·
-
難度 5/5 一週以上 新手友好度 15/100
labthings/python-labthings#302 · 2 則留言 ·
-
難度 5/5 一週以上 新手友好度 30/100
labthings/python-labthings#300 ·
-
難度 5/5 一週以上 新手友好度 25/100
labthings/python-labthings#237 · 3 則留言 ·
-
難度 4/5 3-5 天 新手友好度 35/100
查看 labthings/python-labthings 的全部 Issue
相似的 Issue
-
agent-ready documentation needs-triage
難度 1/5 1-3 小時 新手友好度 88/100
-
documentation
難度 1/5 1 小時以內 新手友好度 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" 未關閉
難度 1/5 1 小時以內 新手友好度 92/100
-
instance instance add
難度 1/5 1 小時以內 新手友好度 72/100
searxng/searx-instances#939 · 1 則留言 ·
-
area-deployment area-integrations triage:bot-seen
難度 2/5 半天 新手友好度 86/100