Incorrect type for message in FireFlyTokenTransferRequest
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- go, typescript
- 領域
- api
調査の方向性
pkg/core/tokentransfer.go から始め、TokenTransfer の Message フィールドを、issue に記載されている TokenTransferInput 型および MessageInOut 型と比較します。次に、TypeScript SDK 内の生成された requestBody 宣言を追跡し、この不一致が Swagger ジェネレーターに起因するものかどうかを確認します。FireFlyTokenTransferRequest のメッセージ型が文字列ではなく API 入力オブジェクトと一致すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
It seems the type for message within FireFlyTokenTransferRequest is incorrect. Instead of accepting a message object, it is expecting a string.
requestBody: {
content: {
"application/json": {
....
....
/**
* Format: uuid
* @description The UUID of a message that has been correlated with this transfer using the data field of the transfer in a compatible token connector
*/
message?: string;
....
....
};
};
};
https://github.com/hyperledger/firefly/blob/main/pkg/core/tokentransfer.go#L29-L55
This may be a limitation of the swagger generator, because Message is type fftypes.UUID on TokenTransfer, but the actual input for that api is TokenTransferInput, which wraps TokenTransfer and also has a Message field of type MessageInOut.
- 主要言語
- TypeScript
- スター
- 16
- フォーク
- 9
- 平均マージ
- 16分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hyperledger-firefly/sdk-nodejs のほかの issue
-
Migrate NPM workflows to Trusted Publishing再び着手できるかも @annamcallister が 35 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
hyperledger-firefly/sdk-nodejs#99 · コメント 4 件 · リアクション 1 件 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 43/100
hyperledger-firefly/sdk-nodejs の issue をすべて見る
似ている issue
-
engine-rs P3 review-deferral wasm
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
maniator/verticopolis#1154 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
telerik/kendo-react#3861 ·
メンテナーはふだん 1 日以内に返信
-
[bug]: use-mobile.ts uses pixel logic, causing UI state de-sync with Tailwind CSS rem breakpointsオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
task
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100