A space before a segment is rejected on the right-hand side of a comparison

Đang mở
#43 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
67/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
backend

Hướng nghiên cứu

Start by locating the JSONPath parser and the tests for whitespace around query segments; the issue gives two failing expressions and their expected results. Compare how the left and right sides of a comparison are parsed, then add regression cases for both examples. Done means both expressions parse and return the stated objects, consistent with the reported jsonpath-rfc9535 behavior.

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

Mô tả

A blank before a segment is allowed in a singular query, but not when the query is on the right-hand side of a
comparison.

  • $[?1 == @ .b] on [{"b":1}] is a parse error ("unexpected '.' at position 11"); it should return [{"b":1}].
  • $[[email protected] <= @ .b] on [{"a":1,"b":1}] is a parse error at position 13; it should return the object.

The left-hand side accepts the space; only the right-hand side rejects it. jsonpath-rfc9535 accepts both.

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

  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 theory/jsonpath

Tất cả issue của theory/jsonpath

Issue tương tự

Thêm issue về Go

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.