[Schema Inaccuracy] Pull Request Simple labels.items.properties.description may be null

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
openapi
領域
api

調査の方向性

Pull Request Simple スキーマから始め、labels.items.properties.description の定義を、issue に示されている Pull Request スキーマと比較してください。記載されている curl リクエストを使ってレスポンスを再現し、その後、nullable な description と想定される repository フィールドの表現が API レスポンスと一致するようにスキーマを更新してください。

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

説明

feature

Schema Inaccuracy
The Pull Request Simple object field labels.items.properties.description may be null, as the Pull Request object.

schemas:

incorrect

pull-request-simple:
type: object
title: Pull Request Simple
properties:
labels:
type: array
items:
properties:
description:
type: string

correct

pull-request:
type: object
title: Pull Request
properties:
labels:
type: array
items:
properties:
description:
type:
- string
- '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

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

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  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 を短くまとめたダイジェスト。