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

Structurally validate the Result document that `usabl comment` reads from stdin

Đang mở
#256 0 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
44/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
cli, testing-qa

Hướng nghiên cứu

Start at the usabl comment stdin parser and trace any other entry point that accepts an externally composed Result. Read the Result contract and the existing checks for schema version, exit code, and verdict. Add structural validation at those boundaries; done means malformed arrays, counts, enums, or nested objects are refused with exit 4 and a plain reason.

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

Mô tả

area: ci enhancement security

What

usabl comment reads a Result as JSON from standard input. The parser checks the schema version, the accessibility exit code, and one forbidden verdict, and casts the rest.

Why it matters

A document that supplies text where a count belongs reached the rendered comment unsealed and rendered as a live mention through GitHub's Markdown API. The comment now type-checks every value it prints outside a code span and names it unknown when it is not what it claims, and seals every string the Result carries. That closes the rendering side but the document is still not validated as a structure.

Direction

Validate the whole Result at the stdin boundary against the contract: every array is an array, every count is a whole number, every enum is one of its values, every nested object has the fields it claims. Refuse with exit 4 and a plain reason otherwise. Apply the same validation to any other entry point that accepts an externally composed Result.

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
2 giờ 48 phút
Pull request đã merge (30 ngày)
8

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

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 usabl-dev/usabl

Tất cả issue của usabl-dev/usabl

Issue tương tự

Thêm issue về TypeScript

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.