ietf-wg-jsonpath / draft-ietf-jsonpath-base

Development of a JSONPath internet draft
https://ietf-wg-jsonpath.github.io/draft-ietf-jsonpath-base/
Other
58 stars 20 forks source link

Should input to length function be of type OptionalValue instead of Value #383

Closed glyn closed 1 year ago

glyn commented 1 year ago

@cabo raised this in a PR review.

glyn commented 1 year ago

I think the answer is "yes" because that allows the length() function to be used on a Singular Path rather than on just a literal.

gregsdennis commented 1 year ago

Yes. I would expect any function that can take a path must allow any value.