Repository navigation
Port fixes from jsonpath-rfc9535 - #145
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When strict compliance with RFC 9535 is enforced:
Fix detection of function expressions with a
ValueTyperesult that are not part of a comparison expression. Previously we allowedValueTypefunctions without a comparison if they were part of a prefix expression. Now we raise aJSONPathTypeError, as required by RFC 9535.Fix a typo in the regular expression used for scanning shorthand names. Previously we were rejecting some names containing characters in the Unicode BMP.
Fix parsing of some int and float literal corner cases involving leading zeros.
Add
JSONPathOverflowError, which is now raised when extremely large integer literals can't be parsed. Previously a standardOverflowErrorwas raised in such cases.Fix handling of JSONPath expressions with many segments (hundreds). Previously we would get a
RecursionErrorat evaluation time from deeply nested generator functions. Now we materialize internal node lists every 100 segments to avoid the recursion error.Fix handling of
logical-not-op. We now raise aJSONPathSyntaxErrorwhen!is not followed by a parenthesized expression, filter query or function expression.