Skip to content

Conversation

@jamesls
Copy link
Member

@jamesls jamesls commented Sep 22, 2015

This jep adds improved boolean expressions and filters to JMESPath.

High level summary is it adds:

  • And expression: a && b
  • Not expressions: !is_admin
  • Parens: (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.

jamesls added a commit to jmespath/jmespath.test that referenced this pull request Sep 23, 2015
jamesls added a commit to jmespath/jmespath.test that referenced this pull request Sep 23, 2015
@jamesls
Copy link
Member Author

jamesls commented Sep 29, 2015

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:

`foo`

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be |

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@mtdowling
Copy link
Contributor

Nice work. :shipit:

@jamesls jamesls merged commit d6fb385 into master Sep 30, 2015
@jamesls
Copy link
Member Author

jamesls commented Sep 30, 2015

Ok, I'll mark this as accepted and merge.

jamesls added a commit to jmespath/jmespath.test that referenced this pull request Sep 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants