Idea: detailed version-specific type annotations for `Schema`
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
- 25/100
Hướng nghiên cứu
Start by reading the linked Python typing discussion and the related jsonschema issues #766 and #778 to understand the proposed TypedDict approach and version-specific schema differences. The issue gives exclusiveMaximum as an example; a working implementation would provide static schema types that vary by draft version and could be considered for upstreaming.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I recently saw https://github.com/python/typing/issues/182#issuecomment-899624078 proposing a nice trick for type-checking JSON data, and it occured to me that this could be extended to define version-specific Schema types using TypedDict. See also https://github.com/Julian/jsonschema/issues/766 and https://github.com/Julian/jsonschema/issues/778 - if we get a working implementation, this would probably be suitable for upstreaming.
For example, this would allow for static detection of exclusiveMaximum as either bool or int | float depending on the schema draft version.
- Ngôn ngữ chính
- Python
- Star
- 281
- Fork
- 35
- 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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc 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 python-jsonschema/hypothesis-jsonschema
-
Missing test files in Pypi releaseCó thể đã có người làm @blouirts123 đã nhận 49 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
-
Shouldn't PKG-INFO Homepage point to https://github.com/python-jsonschema/hypothesis-jsonschema ?Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 58/100
python-jsonschema/hypothesis-jsonschema#114 · 1 bình luận ·
-
Push release tags to github?Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 55/100
python-jsonschema/hypothesis-jsonschema#113 · 1 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
python-jsonschema/hypothesis-jsonschema#104 · 3 reaction ·
Tất cả issue của python-jsonschema/hypothesis-jsonschema
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
web-push-libs/pywebpush#216 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
AgriciDaniel/claude-seo#572 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
area:print-dispatch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: docs domain: technical-writing good first issue type: documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Deepak3699/Ai_Mentor#919 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày