-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JEP 9 - Boolean expressions #16
Conversation
Should be ready for review.
Proposed in jmespath/jmespath.site#16
Proposed in jmespath/jmespath.site#16
Last call for feedback. I think as far changes go, this is a pretty straightforward change that fleshes out the partial boolean support that JMESPath previously had. If you want something more concrete to look at, here at the proposed compliance tests for this change: jmespath/jmespath.test@f8f678e Note: I'll update the compliance tests to not use the outdated syntax of:
|
|
||
The operator precedence list in the specification will now read: | ||
|
||
* Pipe - ``||`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Nice work. |
Ok, I'll mark this as accepted and merge. |
Proposed in jmespath/jmespath.site#16
This jep adds improved boolean expressions and filters to JMESPath.
High level summary is it adds:
a && b
!is_admin
(a || b) && c
In addition to top level expressions, you can also use them in filter expressions:
Users[? is_admin && !new_account]
Will link jmespath.test updates and JEP 9 implementations to the tracking PR.