[Schema Inaccuracy] `issue.state_reason` missing enum variant: `duplicate`
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- openapi
- Lĩnh vực
- api
Hướng nghiên cứu
Bắt đầu bằng cách xác định định nghĩa schema OpenAPI cho issue.state_reason được hiển thị trong issue, sau đó sử dụng lệnh curl được cung cấp để xác nhận rằng API hiện trả về duplicate. Hoàn tất có nghĩa là enum liệt kê duplicate cùng với các biến thể hiện có và schema mô tả chính xác phản hồi đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 1.6k
- Fork
- 342
- Merge trung bình
- 2 giờ 23 phút
- Pull request đã merge (30 ngày)
- 57
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/rest-api-description
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
github/rest-api-description#7220 ·
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
github/rest-api-description#7201 ·
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/rest-api-description#7163 ·
-
Runner deprecations: registration_deprecates_at is declared on the response but never returned Đang mởfeature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
github/rest-api-description#7162 ·
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
github/rest-api-description#7135 ·
Tất cả issue của github/rest-api-description
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
mksglu/context-mode#1200 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr impact:auth-provider issue-rating: 🌊 off-meta tidepool P2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100