[Schema Inaccuracy] Schema says array of objects, but response had a null value in the array alongside the objects
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
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả 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
Tìm mô tả OpenAPI cho endpoint List Public Repositories và kiểm tra schema của mảng phản hồi bằng cách đối chiếu với ví dụ được ghi trong tài liệu. Cập nhật schema để các items của nó cho phép cả các đối tượng repository tối thiểu và null, sau đó xác minh rằng mô tả endpoint khớp với phản hồi được tái hiện.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Schema Inaccuracy
https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-public-repositories
The List Public Repositories endpoint is supposed to return an array of minimal repository objects.
One of the values in such a response at a certain offset was null instead of a minimal repository object.
Expected
Schema should specify that array may contain null values and minimal repository objects, rather than only saying that it contains minimal repository objects.
Reproduction Steps
curl -i "https://api.github.com/repositories?since=263175046"
HTTP/1.1 200 OK
Date: Thu, 13 Feb 2025 06:21:57 GMT
Content-Type: application/json; charset=utf-8
Cache-Control: public, max-age=60, s-maxage=60
Vary: Accept,Accept-Encoding, Accept, X-Requested-With
ETag: W/"94f54685d2f34d4b33402468be31a060f63dbbe9842c0d0294064dc2805f8454"
X-GitHub-Media-Type: github.v3; format=json
Link: <https://api.github.com/repositories?since=263175278>; rel="next", <https://api.github.com/repositories{?since}>; rel="first"
x-github-api-version-selected: 2022-11-28
# …
X-GitHub-Request-Id: D170:2F4C71:38ABFF0:3A8CE3C:67AD8F86
[
{
"id": 263175047,
"node_id": "MDEwOlJlcG9zaXRvcnkyNjMxNzUwNDc=",
"name": "design-patterns-php",
"full_name": "ninja-tn/design-patterns-php",
"private": false,
# …
"deployments_url": "https://api.github.com/repos/ninja-tn/design-patterns-php/deployments"
},
# …
# many lines more, omitted for brevity
# …
{
"id": 263175062,
"node_id": "MDEwOlJlcG9zaXRvcnkyNjMxNzUwNjI=",
"name": "38671075_60",
"full_name": "offlinesite/38671075_60",
"private": false,
# …
"deployments_url": "https://api.github.com/repos/offlinesite/38671075_60/deployments"
},
null,
{
"id": 263175064,
"node_id": "MDEwOlJlcG9zaXRvcnkyNjMxNzUwNjQ=",
"name": "onLlineBooks",
"full_name": "crisantus/onLlineBooks",
"private": false,
# …
"deployments_url": "https://api.github.com/repos/crisantus/onLlineBooks/deployments"
}
# …
# many lines more, omitted for brevity
# …
]
There between object with id 263175062 and object with id 263175064 is a null instead of a minimal repository object.
- 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ự
-
Area: Excel support
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
orbeon/orbeon-forms#7893 ·
-
essnmx good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
yeti-platform/yeti#1380 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
modelcontextprotocol/python-sdk#3566 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
griptape-ai/griptape#2353 ·