Files
floci/src/main/java/io
Tyler Webb e607b1a790 fix(eventbridge): match nested patterns against arrays of objects (#7849)
Narrow the change to the two array cases that element-by-element matching
of scalar arrays does not cover, and drop the scalar handling in
matchesSingleElement.

A nested pattern such as {"detail":{"items":{"id":["a"]}}} never matched
{"items":[{"id":"a"}]}, because matchesDetailNode looked the field up on
the array itself. A nested pattern now matches an array when any element
matches it, as PipesFilterMatcher.matchesNested does.

An empty array is treated as an absent field, so {"exists":false} matches
it and {"exists":true} does not.

The per-case TestEventPattern requests are replaced by one parameterized
test in EventBridgeServiceTest.
2026-11-10 08:51:06 -04:00
..