mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
fix(sns): match nested message-body policies in arrays (#4234)
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user