[Schema Inaccuracy] `issue.state_reason` missing enum variant: `duplicate`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- openapi
- Domain
- api
Research direction
Start by locating the OpenAPI schema definition for issue.state_reason shown in the issue, then use the provided curl command to confirm the API currently returns duplicate. Done means the enum lists duplicate alongside the existing variants and the schema accurately describes that response.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- No language data
- Stars
- 1.6k
- Forks
- 342
- Avg merge
- 3h 33m
- Merged PRs (30d)
- 51
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/rest-api-description
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
github/rest-api-description#7201 ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
github/rest-api-description#7163 ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/rest-api-description#7162 ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/rest-api-description#7135 ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
github/rest-api-description#7111 · 1 comment ·
All issues in github/rest-api-description
Similar issues
-
bug customer-eng Durable Agents Inngest status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
integration: elevenlabs
Difficulty 1/5 Under an hour Newbie friendliness 88/100
home-assistant/core#182944 · 1 comment ·
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vicharanashala/fln#563 ·