[Schema Inaccuracy] webhook-workflow-run-* components define pull request numbers and ids as 'number' instead of 'integer'
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 62/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- openapi
- 領域
- api
調査の方向性
issue で特定された 3 つの webhook-workflow-run コンポーネントパスにある api.github.com.2022-11-28.json を調査し、pull_requests.items.properties.id と number に注目してください。これらの定義を integer に変更し、issue で指摘されている他の number 型の id 定義も確認してください。完了条件は、影響を受けるスキーマエントリが期待される integer 型と一致することです。
索引モデルが issue の本文から書いたものです。
説明
Schema Inaccuracy
The workflow_run webhook schemas define pull request numbers and ids as floating point numbers instead of integers.
This applies to:
#/components/schemas/webhook-workflow-run-completed#/components/schemas/webhook-workflow-run-in-progress#/components/schemas/webhook-workflow-run-requested
where the path $.properties.workflow_run.properties.pull_requests.items.properties.id and $.properties.workflow_run.properties.pull_requests.items.properties.number are both defined as "type": "number".
Expected
Pull request numbers are always integers, and in practice, the workflow_run event data for workflow_run.pull_requests[].number and workflow_run.pull_requests[].id is always an integer. The schema is wrong here. Please correct their type to "integer".
In all of the type definitions in api.github.com.2022-11-28.json, the above locations are the only 3 definitions for the "number" property to use "type": "number". There are a total of 8 "id" definitions that type these as "type": "number", meaning that there are up to 5 additional locations which are probably wrong too.
- 主要言語
- 言語のデータがありません
- スター
- 1.6k
- フォーク
- 345
- 平均マージ
- 6時間
- マージ済み PR(30日)
- 82
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/rest-api-description のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
github/rest-api-description#7266 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
github/rest-api-description#7246 ·
メンテナーはふだん 1 日以内に返信
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
github/rest-api-description#7220 ·
メンテナーはふだん 1 日以内に返信
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
github/rest-api-description#7201 ·
メンテナーはふだん 1 日以内に返信
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/rest-api-description#7163 ·
メンテナーはふだん 1 日以内に返信
github/rest-api-description の issue をすべて見る
似ている issue
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
keyxmakerx/Chronicle#955 ·
メンテナーはふだん 1 日以内に返信
-
tool-calling
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
vllm-project/vllm#59838 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
raullenchai/Rapid-MLX#4037 ·
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
homarr-labs/homarr#6976 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
diegosouzapw/OmniRoute#15401 ·
メンテナーはふだん 2 日以内に返信