[Schema Inaccuracy] Schema says array of objects, but response had a null value in the array alongside the objects
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- openapi
- 領域
- api
調査の方向性
List Public Repositories エンドポイントの OpenAPI 定義を見つけ、レスポンス配列のスキーマをドキュメント化された例と照合して確認します。items が最小限のリポジトリオブジェクトと null の両方を許可するようにスキーマを更新し、その後、エンドポイントの説明が再現されたレスポンスと一致することを検証します。
索引モデルが issue の本文から書いたものです。
説明
Schema Inaccuracy
https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-public-repositories
The List Public Repositories endpoint is supposed to return an array of minimal repository objects.
One of the values in such a response at a certain offset was null instead of a minimal repository object.
Expected
Schema should specify that array may contain null values and minimal repository objects, rather than only saying that it contains minimal repository objects.
Reproduction Steps
curl -i "https://api.github.com/repositories?since=263175046"
HTTP/1.1 200 OK
Date: Thu, 13 Feb 2025 06:21:57 GMT
Content-Type: application/json; charset=utf-8
Cache-Control: public, max-age=60, s-maxage=60
Vary: Accept,Accept-Encoding, Accept, X-Requested-With
ETag: W/"94f54685d2f34d4b33402468be31a060f63dbbe9842c0d0294064dc2805f8454"
X-GitHub-Media-Type: github.v3; format=json
Link: <https://api.github.com/repositories?since=263175278>; rel="next", <https://api.github.com/repositories{?since}>; rel="first"
x-github-api-version-selected: 2022-11-28
# …
X-GitHub-Request-Id: D170:2F4C71:38ABFF0:3A8CE3C:67AD8F86
[
{
"id": 263175047,
"node_id": "MDEwOlJlcG9zaXRvcnkyNjMxNzUwNDc=",
"name": "design-patterns-php",
"full_name": "ninja-tn/design-patterns-php",
"private": false,
# …
"deployments_url": "https://api.github.com/repos/ninja-tn/design-patterns-php/deployments"
},
# …
# many lines more, omitted for brevity
# …
{
"id": 263175062,
"node_id": "MDEwOlJlcG9zaXRvcnkyNjMxNzUwNjI=",
"name": "38671075_60",
"full_name": "offlinesite/38671075_60",
"private": false,
# …
"deployments_url": "https://api.github.com/repos/offlinesite/38671075_60/deployments"
},
null,
{
"id": 263175064,
"node_id": "MDEwOlJlcG9zaXRvcnkyNjMxNzUwNjQ=",
"name": "onLlineBooks",
"full_name": "crisantus/onLlineBooks",
"private": false,
# …
"deployments_url": "https://api.github.com/repos/crisantus/onLlineBooks/deployments"
}
# …
# many lines more, omitted for brevity
# …
]
There between object with id 263175062 and object with id 263175064 is a null instead of a minimal repository object.
- 主要言語
- 言語のデータがありません
- スター
- 1.6k
- フォーク
- 342
- 平均マージ
- 2時間 23分
- マージ済み PR(30日)
- 57
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/rest-api-description のほかの issue
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
github/rest-api-description#7220 ·
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
github/rest-api-description#7201 ·
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/rest-api-description#7163 ·
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
github/rest-api-description#7162 ·
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
github/rest-api-description#7135 ·
github/rest-api-description の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
speaches-ai/speaches#678 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's オープンbug ecr
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
conda-forge/spacy-feedstock#177 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100