fix(sns): match nested message-body policies in arrays (#4234)

This commit is contained in:
Aniket Shukla authored and GitHub committed 2026-09-23 11:03:10 -04:00
1 parent aba5f4e919
commit de50859273
4 files changed
+98

No files matched your search

@@ -1236,6 +1236,14 @@ public class SnsService implements Resettable, ResourceProvider {
if (!policy.isObject()) {
return false;
}
if (body != null && body.isArray()) {
for (JsonNode element : body) {
if (matchesBodyPolicy(policy, element)) {
return true;
}
}
return false;
}
var fields = policy.fields();
while (fields.hasNext()) {
var entry = fields.next();