Action schema defines links inconsistently with Thing Description
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
まず現在の Action response schema と Thing Description における links の定義を確認し、既存の Action responses に対する互換性の期待事項を追跡します。プロジェクトが表現を整合させるべきかどうかを決定し、その結果生じる動作、ドキュメント、テストがその決定を反映した時点で完了です。
索引モデルが 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
labthings/python-labthings のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
labthings/python-labthings#323 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
labthings/python-labthings#302 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
labthings/python-labthings#300 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
labthings/python-labthings#237 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
labthings/python-labthings の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
canonical/paas-charm#368 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
tech debt
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
StevenBlack/hosts#3256 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
qualcomm/qai-appbuilder#275 ·