Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip tests for invalid \u escape sequences #66

Merged
merged 2 commits into from
Aug 4, 2024
Merged

Conversation

jg-rp
Copy link
Owner

@jg-rp jg-rp commented Aug 3, 2024

This PR updates the CTS and skips some test cases.

The JSONPath spec is more strict than Python's JSON decoder when it comes to parsing \u escape sequences in string literals (including name selectors). We are adopting a policy of least surprise. The assertion is that most people will expect the JSONPath parser to behave the same as Python's JSON parser.

See jsonpath-compliance-test-suite #87.

Also see jsonpath-rfc9525, an implementation of JSONPath for Python that follows RFC 9535 strictly.

@jg-rp jg-rp merged commit eda8288 into main Aug 4, 2024
36 checks passed
@jg-rp jg-rp deleted the skip-bad-hexchars branch August 4, 2024 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant