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

[QUESTION] What should happen with empty or invalid bugs field?

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
tooling

Hướng nghiên cứu

Review the current behavior described in option 2 and compare it with the proposed handling for empty or invalid bugs fields. Determine which policy should apply to invalid email and url properties, including whether validation or coercion is wanted. Done means the project has an agreed behavior for each listed case.

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

Mô tả

question
  1. Remove it always.

  2. Remove it if neither valid url or email were given, or could have been inferred. (current behavior)

  3. Set it to an empty object.

  4. Leave as much fields as is, but

    a. remove offending properties
    b. coerce offending properties to string

Properties are email and url, which must be strings. They could also be validated to be email addresses or http urls, respectively.

Ngôn ngữ chính
JavaScript
Star
204
Fork
54
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 npm/normalize-package-data

Tất cả issue của npm/normalize-package-data

Issue tương tự

Thêm issue về JavaScript

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.