Skip to content

Document negation operator in JsonPath filter expressions#480

Merged
mike-solomon merged 2 commits intomasterfrom
jsonpath-negation-docs
Apr 2, 2026
Merged

Document negation operator in JsonPath filter expressions#480
mike-solomon merged 2 commits intomasterfrom
jsonpath-negation-docs

Conversation

@steve-aom-elliott
Copy link
Copy Markdown
Contributor

@steve-aom-elliott steve-aom-elliott commented Apr 2, 2026

Summary

  • Adds documentation for the ! (negation) operator in JsonPath filter expressions, which was recently added to the rewrite parser in Add negation support to JsonPathMatcher filter expressions rewrite#7164
  • Covers negated existence checks ([?(!@.property)]), negated comparisons ([?(!(@.key == 'value'))]), and negation combined with logical operators ([?(!@.x && @.y == 'z')])

Test plan

  • Verify the page renders correctly on docs.openrewrite.org
  • Confirm the examples match the syntax supported by the parser

The rewrite parser recently added support for negation in filter
expressions (openrewrite/rewrite#7164). This updates the reference
docs to cover negated existence checks, negated comparisons, and
negation combined with logical operators.
@steve-aom-elliott steve-aom-elliott added the documentation Improvements or additions to documentation label Apr 2, 2026
@steve-aom-elliott steve-aom-elliott moved this from In Progress to Ready to Review in OpenRewrite Apr 2, 2026
@mike-solomon
Copy link
Copy Markdown
Contributor

Thank you!

@mike-solomon mike-solomon merged commit a72d957 into master Apr 2, 2026
2 checks passed
@mike-solomon mike-solomon deleted the jsonpath-negation-docs branch April 2, 2026 16:03
@github-project-automation github-project-automation Bot moved this from Ready to Review to Done in OpenRewrite Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants