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

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

Clarify behaviour of existence test with OptionalBoolean function #345

Closed glyn closed 1 year ago

glyn commented 1 year ago

Currently, the existence test description contradicts the intended use of OptionalBoolean functions. We need to be careful if we want to make a special case for OptionalBoolean functions and not open the door to any boolean value being treated similarly.

cabo commented 1 year ago

2023-01-10 Interim: Fix text to properly handle OptionalBoolean. Make sure to indicate that an existence test from a path never gets to the actual value.

gregsdennis commented 1 year ago

Can this issue be elaborated? What is OptionalBoolean? How does this apply to functions? Examples would be great.

glyn commented 1 year ago

Base 09 explains what OptionalBoolean is and uses it in the match and search functions. The current issue will also add some text to explain the way OptionalBoolean functions behave in filter expressions.