bufbuild/es: enable json_types=true in generated SDKs
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
- #2891 @saefty による — マージされずにクローズ
評価
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- typescript
調査の方向性
Find the bufbuild/es plugin configuration that sets registry.opts for generated npm SDKs and read the surrounding versioning conventions. Add json_types=true as proposed, then verify the next generated SDK's .d.ts files include JSON message types while .js output stays unchanged. Pull request #2891 is already open for this issue.
索引モデルが issue の本文から書いたものです。
説明
The generated npm SDKs of buf.build/bufbuild/es are built with registry.opts: [import_extension=js]. protoc-gen-es v2 also has the option json_types=true, which adds a type for the JSON form of every message. Users of the generated SDKs cannot set plugin options, so they never get these types.
Use case: HTTP APIs that use the protobuf JSON mapping instead of gRPC. A client that only needs types for the JSON it receives has to derive them itself or run buf generate.
Effect: The .js output does not change. The .d.ts files gain the JSON types. toJson() without options returns the message's JSON type instead of JsonValue, so code that annotates the result as JsonValue may no longer compile.
Proposed change: add json_types=true to registry.opts of the next bufbuild/es version.
- 主要言語
- Dockerfile
- スター
- 75
- フォーク
- 27
- 平均マージ
- 5時間 35分
- マージ済み PR(30日)
- 52
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bufbuild/plugins のほかの issue
-
Unexpected Fetch latest versions failure対応中かも @pkwarren が 12 日前に担当しました。 オープンBug
bufbuild/plugins#2899 · 担当者 3 名 ·
メンテナーはふだん 1 日以内に返信
-
Plugin request for Buf Schema Registry: protoc-gen-connect-php再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
Feature Plugin Request
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
bufbuild/plugins#2255 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
bufbuild/plugins の issue をすべて見る
似ている issue
-
bug platform-desktop
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Termix-SSH/Plugin-Tmux-Monitor#36 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
melgarafael/DeskcommCRM#5614 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
rmosolgo/graphql-ruby#5918 ·
メンテナーはふだん 1 日以内に返信
-
bug p360
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
navikt/crm-arbeidsforhold#1339 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openvax/varcode#824 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信