mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 23:29:28 -05:00
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.