Type enterprise on oauth.v2.user.access responses

オープン 初心者向け
#2,895 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
api

調査の方向性

まず OauthV2UserAccessResponse と OauthV2AccessResponse を比較し、レスポンス型の生成に使われる記録済みレスポンスサンプルを調べます。サンプルに enterprise オブジェクトを含めるよう更新してから、型を再生成します。OauthV2UserAccessResponse に enterprise?: Enterprise が公開され、res.enterprise がコンパイルできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

pkg:web-api
Summary

oauth.v2.user.access responses include enterprise: an { id, name } object for an org install, or null otherwise. OauthV2UserAccessResponse doesn't type it yet, so res.enterprise doesn't compile.

The type is generated from the recorded response sample in slackapi/java-slack-sdk, and that sample came from a workspace install where enterprise was null, so the field was left out. Once the sample includes an enterprise object, regenerating the response types adds enterprise?: Enterprise here, the same as OauthV2AccessResponse.

This came up in review of #2872.

主要言語
TypeScript
スター
3.4k
フォーク
694
平均マージ
1日 10時間
マージ済み PR(30日)
75

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

slackapi/node-slack-sdk のほかの issue

slackapi/node-slack-sdk の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。