You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I finally found time to work on [making jsonpath-hs pass the CTS]. I think the cts.json needs to double escape all the tests [with] selectors which encode characters using the \u notation. Otherwise the JSON parser which parses the test already decodes them giving no chance to the jsonpath parser.
The text was updated successfully, but these errors were encountered:
That means the un-JSON'd path is $["\u0000"] instead of $[""] (which isn't rendered here but should have a 0-char in the string). Do we want to test both, maybe?
These tests, specifically, are supposed to be invalid as we required those chars to be escaped, but I don't see tests where we check the results of paths that do properly escape them.
Yes, I think we need to test both those situations. If we don't already, we should also test the use of a Unicode escape in a query to represent a character that is not escaped in the JSON.
@akshaymankar raised the following issue:
Hi, I finally found time to work on [making jsonpath-hs pass the CTS]. I think the cts.json needs to double escape all the tests [with] selectors which encode characters using the
\u
notation. Otherwise the JSON parser which parses the test already decodes them giving no chance to the jsonpath parser.The text was updated successfully, but these errors were encountered: