String Interpolation for Update Values
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
- #238 @baywet による — マージされずにクローズ
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
調査の方向性
まず、リンクされている Environment Variables issue と、この issue で参照されている Arazzo の例を読み、その後ここでの議論を確認してください。提案されている $env.VAR_NAME 構文と併せて、プレフィックスおよびサフィックス付きの補間をサポートすべきかどうかを判断してください。完了には、合意された設計と仕様への明確な変更が必要です。
索引モデルが issue の本文から書いたものです。
説明
Was on call with @lornajane today and we discussed Environment Variables and the topic of string interpolation came up.
Lorna proposed using a $env.VAR_NAME syntax, and while we were looking around for prior art we found what appears to be an example of string interpolation in the Arazzo examples which I will copy here, specifically "couponCode": "{$inputs.coupon_code}",:
Example from Arazzo:
contentType: application/json
payload: |
{
"petOrder": {
"petId": "{$inputs.pet_id}",
"couponCode": "{$inputs.coupon_code}",
"quantity": "{$inputs.quantity}",
"status": "placed",
"complete": false
}
}
The above example does not have any suffix or prefix literals, but I can imagine that if could:
Example modified to show suffixes and prefixes:
contentType: application/json
payload: |
{
"petOrder": {
"petId": "{$inputs.pet_id}000",
"couponCode": "coupon-{$inputs.coupon_code}",
"quantity": "{$inputs.quantity}",
"status": "placed",
"complete": false
}
}
We both agreed there was value to incorporating string interpolation although Lorna argued against doing it sooner than later (I will let her elaborate as to why.)
I argued if we were to adopt Arazzo's style of variables (which I support) — e.g. $env.VAR_NAME — then also supporting string interpolation would be very small incremental lift for implementors with an outsized increase in utility to support more of the 80 percentile of use-cases.
This of course assumes we do not envision that supporting it would block some future capability we plan for in the future.
Lorna asked me to create an issue so that others could weigh in on the idea, and here it is.
- 主要言語
- JavaScript
- スター
- 121
- フォーク
- 38
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 9
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OAI/Overlay-Specification のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
OAI/Overlay-Specification#415 ·
メンテナーはふだん 1 日以内に返信
-
ci: update the agenda template to lead us down the path of checking the spec repo対応中かも @baywet が 5 日前に担当しました。 オープン
OAI/Overlay-Specification#411 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
ci: add automation to sync from main -> dev -> vX.Y-dev branches対応中かも @baywet が 5 日前に担当しました。 オープン
OAI/Overlay-Specification#410 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Revisit: should Overlays declare their target document format? (follow-up to #268)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
OAI/Overlay-Specification#367 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
OAI/Overlay-Specification#358 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
OAI/Overlay-Specification の issue をすべて見る
似ている issue
-
area/frontend good first issue kind/cooldown
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
kestra-io/kestra#20702 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Form-data fields are not parsed when importing a cURL request対応中かも @aayushbaluni が今日担当しました。 オープンbug status-new
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
メンテナーはふだん 1 日以内に返信
-
bug MVP
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
saayam-for-all/webapp#1911 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
vshulcz/deja-vu#4937 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[Focus] Accessibility (a11y) [Package] Grid [Type] Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信