Consider defining contains behavior more precisely #121
Closed
springcomp
started this conversation in
General
Replies: 2 comments
-
Also, some implementations process arguments differently:
Some implementations deal with types differently within the same implementation:
The JEP must remove this ambiguity. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
See discussion in #102.
The
contains()
function seems to have a well defined behavior when its first argument is an array, as it is based upon equality with one of the array element and equality is well defined in JMESPath.However,
contains()
is not sufficiently defined for string arguments. I think a new JEP is warranted to close the loop and tighten its behavior to only accept a string search argument and define containment by the intuitive occurence of an equal substring within the subject string.Beta Was this translation helpful? Give feedback.
All reactions