Easier way to replace an array?
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 52/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- powershell
調査の方向性
リンクされた wiki ページの「Default Transformation」セクションと「Replace Transformation」セクションから始め、issue にある 2 つの appsettings.json の例に照らして、文書化されている array の動作を検証してください。より短いサポート対象の構文が存在する場合はそれを文書化し、存在しない場合は既存の @jdt.replace 形式とその期待される出力を明確にしてください。
索引モデルが issue の本文から書いたものです。
説明
Under the "Default Transformation" section there is an array listed as "SupportedVersions" that says the default transformation for arrays is append but when going to the "Replace" section, it does not show how to replace an array.
Let's assume I have 2 appsettings.json files that need merged so that the SupportedVersions array is replaced when listed under the Settings section.
First file
{
"Settings": {
"SupportedVersions" : [1, 2]
}
}
Second file
{
"Settings": {
"SupportedVersions" : [3, 4]
}
}
Expected output
{
"Settings": {
"SupportedVersions" : [3, 4]
}
}
I can get this to work by using the following but is there an easier way that I can't find in the documentation?
This works but is long
{
"Settings": {
"@jdt.replace" : {
"@jdt.path" : "$.SupportedVersions",
"@jdt.value" : [3, 4]
}
}
}
- 主要言語
- PowerShell
- スター
- 117
- フォーク
- 38
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/json-document-transforms のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
Release requestオープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
microsoft/json-document-transforms#27 · リアクション 1 件 ·
microsoft/json-document-transforms の issue をすべて見る
似ている issue
-
fix formatting of the sample database page of the docs対応中かも @Aaqibhafeezkhan が今日担当しました。 オープンdocumentation good first issue help wanted
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
chaoss/CollectOSS#544 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
docs: clarify gh api -f vs -F and @-file expansion in the gh skill対応中かも @MatiasOlivera が今日担当しました。 オープンenhancement
難易度 2/5 半日 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 62/100
ibm-granite/granite.build#504 ·
メンテナーはふだん 2 日以内に返信
-
Say in the changelog that the text-index update cannot be rolled back対応中かも @praetorianer777 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
praetorianer777/GoTome#275 ·
メンテナーはふだん 1 日以内に返信
-
bug untriaged
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
opensearch-project/search-relevance#618 ·
メンテナーはふだん 3 日以内に返信