`$..true`, `$..false` and `$..null` are rejected as member names
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
- 72/100
Hướng nghiên cứu
Start by tracing how the Go parser handles member names after . and .., then compare that with member-name parsing inside filters. Reproduce the reported cases and use the existing parser tests as the entry point; the issue does not name specific files or tests. Done when all three names parse in each reported context and the examples return the stated results.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
A property literally named true, false or null works after . but not after .. or inside a filter.
$.true on {"true":1} gives [1], which is right. But $..true on the same document is a parse error
("unexpected byte at position 4"), and it should also give [1]. $..false and $..null fail the same way.
It also shows up inside filters: $[[email protected]] on [1] is a parse error at position 9 (it should just parse and
match nothing), and $[?1 == @.true] on [{"true":1}] is a parse error at position 11 (it should give [{"true":1}]).
So the same name is fine after a child . but rejected after a descendant .. and in a filter's member-name
position. The Python reference implementation (jsonpath-rfc9535) accepts all of these.
- Ngôn ngữ chính
- Go
- Star
- 41
- Fork
- 4
- Merge trung bình
- 2 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 theory/jsonpath
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Tất cả issue của theory/jsonpath
Issue tương tự
-
--auto-tier: hashing, dedup, resume validation and DVC/git reads still update atime on LinuxĐang mởarea: pipeline priority: low type: bug
Độ 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
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
prime-radiant-inc/evener#8335 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ui: OnTextKey on SearchField never sees keys (it does not reach the inner input)Có thể đã có người làm @szluyu99 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
router-for-me/CLIProxyAPI#8815 ·
Maintainer thường phản hồi trong vòng 7 ngày