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
Ordering operators >,>=,<,<= are only valid for numbers. Evaluating any other type with a comparison operator will yield a null value
But this library seems to follow native JavaScript rules instead, allowing e.g. strings to be used in comparisons with non-null results: https://runkit.com/embed/6yymqriowri5
According to the spec, ordering operators are only valid for numbers, but all types were being compared according to JavaScript rules instead. Fix the interpretation of ordering operators to conform to the spec and return null for any non-numbers.
Fixesjmespath#42Fixesjmespath#51
Per documentation:
But this library seems to follow native JavaScript rules instead, allowing e.g. strings to be used in comparisons with non-
null
results: https://runkit.com/embed/6yymqriowri5The text was updated successfully, but these errors were encountered: