Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Schema Inaccuracy] Pull Request Simple Head repo label field may be null

オープン
#5,561 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

まず pull-request-simple スキーマを見つけ、その head.repo の定義を pull-request スキーマと比較します。記載されている curl エンドポイントと、head リポジトリが削除された pull request を使ってレスポンスを再現します。フィールドがリポジトリまたは null を受け入れるようにスキーマを更新し、その後 API の説明を検証します。

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

説明

Schema Inaccuracy
The Pull Request Simple object field head.repo may be null if user has deleted the repo, as the Pull Request object.

schemas:

incorrect

pull-request-simple:
type: object
title: Pull Request Simple
properties:
head:
type: object
properties:
repo:
"$ref": "#/components/schemas/repository"

correct

pull-request:
type: object
title: Pull Request
properties:
...
head:
type: object
properties:
repo:
type:
- object
- 'null'
Expected
change the repo field to oneof repository / type: null

Reproduction Steps
list pull request using curl -X GET https://api.github.com/repos/apache/pulsar/pulls?state=open

get pull request https://github.com/apache/pulsar/pull/6036 which head repo was deleted

Related to https://github.com/yanyongyu/githubkit/issues/6

主要言語
言語のデータがありません
スター
1.6k
フォーク
345
平均マージ
7時間 29分
マージ済み PR(30日)
62

環境構築

はじめの一歩

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

github/rest-api-description のほかの issue

github/rest-api-description の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

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

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