[Schema Inaccuracy] `issue.state_reason` missing enum variant: `duplicate`
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- openapi
- 領域
- api
調査の方向性
まず、issue に示されている issue.state_reason の OpenAPI スキーマ定義を見つけ、次に提供された curl コマンドを使用して、API が現在 duplicate を返すことを確認します。enum に既存のバリアントと並んで duplicate が一覧表示され、そのレスポンスをスキーマが正確に記述していれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Schema Inaccuracy
(this issue was reposted from https://github.com/orgs/community/discussions/150535, cc https://github.com/yanyongyu/githubkit/issues/188)
Current definition:
"state_reason": {
"description": "The reason for the current state",
"type": [
"string",
"null"
],
"enum": [
"completed",
"reopened",
"not_planned",
null
],
"examples": [
"not_planned"
]
},
Expected
duplicate listed among variants. Here's an issue with that state_reason (https://api.github.com/repos/python/mypy/issues/18584):
{
"active_lock_reason": null,
"assignee": null,
"assignees": [],
"author_association": "CONTRIBUTOR",
"body": "...",
"closed_at": "2025-02-02T16:24:49Z",
"closed_by": {...},
"comments": 1,
"comments_url": "https://api.github.com/repos/python/mypy/issues/18584/comments",
"created_at": "2025-02-01T23:28:55Z",
"events_url": "https://api.github.com/repos/python/mypy/issues/18584/events",
"html_url": "https://github.com/python/mypy/issues/18584",
"id": 2825499430,
"labels": [...],
"labels_url": "https://api.github.com/repos/python/mypy/issues/18584/labels{/name}",
"locked": false,
"milestone": null,
"node_id": "I_kwDOAGuhRc6oabMm",
"number": 18584,
"performed_via_github_app": null,
"reactions": {...},
"repository_url": "https://api.github.com/repos/python/mypy",
"state": "closed",
"state_reason": "duplicate",
"sub_issues_summary": {
"completed": 0,
"percent_completed": 0,
"total": 0
},
"timeline_url": "https://api.github.com/repos/python/mypy/issues/18584/timeline",
"title": "Overloaded signature with `LiteralString` is seen as \"broader or same\" as `str`",
"updated_at": "2025-02-02T16:24:50Z",
"url": "https://api.github.com/repos/python/mypy/issues/18584",
"user": {...}
}
Reproduction Steps
$ curl -fs https://api.github.com/repos/python/mypy/issues/18584 | jq -r '.state_reason'
duplicate
- 主要言語
- 言語のデータがありません
- スター
- 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
mksglu/context-mode#1200 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr impact:auth-provider issue-rating: 🌊 off-meta tidepool P2
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100