Failing test_canonicalises_to_equivalent_fixpoint
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start with the failing test in tests/test_canonicalise.py at line 45 and reproduce it using the schema in the issue. Compare the results of the first and second calls to canonicalise to locate why the schema changes again. Done means the test passes with the canonicalized schema unchanged on the second call.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Currently the test_canonicalises_to_equivalent_fixpoint test fails on assert cc == canonicalish(cc) with the following schema:
schema = {'not': {'anyOf': [{'type': 'number'}, {'if': {'type': 'null'}, 'then': {'type': 'null'}, 'else': {}}]}}
As far as I see, calling canonicalise second time should not transform the schema again. But here is schema after the first call:
{
"not": {"anyOf": [{"const": None}, {"not": {"const": None}}]},
"type": ["null", "boolean", "string", "array", "object"],
}
and after the second call:
{
"not": {
"anyOf": [
{"const": None},
{
"type": ["null", "boolean", "string", "array", "object"],
"not": {"const": None},
},
]
},
"type": ["null", "boolean", "string", "array", "object"],
}
git bisect gave me this commit - afc292b9a2873a0c33176e61829c3dde25139333
Should the second call leave the input schema as is?
- 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