Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#5,560 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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
42/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 với schema Pull Request Simple và so sánh định nghĩa của labels.items.properties.description với schema Pull Request được hiển thị trong issue. Tái tạo response bằng request curl được liệt kê, sau đó cập nhật schema để description nullable và biểu diễn dự kiến của trường repository khớp với response của API.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
1.6k
Fork
345
Merge trung bình
6 giờ
Pull request đã merge (30 ngày)
82

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/rest-api-description

Tất cả issue của github/rest-api-description

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.