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

Consider testing strategy for keeping commonTypes regex in sync with TSOA JSDoc @pattern decorators

Đang mở
#984 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ó
5/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

The regex patterns live in application/common/types/commonTypes.ts, and the matching TSOA @pattern JSDoc tags sit in the various common type files that import them. Before writing code, decide whether a consistency test is worth building or whether the discussion should move to a Zod migration, which the issue asks you to scope. Done means either an agreed testing approach with a test that fails when a regex and its @pattern tag diverge, or a written scope for the Zod change.

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

Mô tả

In review comments on #937 @iamtanuj18 and @plouka13 - pointed out that it would be good to have a mechansism to ensure the regex in application/common/types/commonTypes.ts are consistent with the JSDoc TSOA @pattern decorators in the various common types.

I started writing a test to check these were consistent, but I think it deserves being thoughtful about how best to test this (or if it was worth it to spend that time scoping what a change to using Zod would require).

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

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 Garvan-Data-Science-Platform/ctrl

Tất cả issue của Garvan-Data-Science-Platform/ctrl

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.