Skip to content

Commit 06031c4

Browse files
Merge pull request #222637 from shanhix1/patch-2
Update the behavior of [*] aliases with empty arrays
2 parents 5e7657f + 2452499 commit 06031c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/governance/policy/how-to/author-policies-for-arrays.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ of `stringArray` are equal to '"value"'.
334334
}
335335
```
336336

337-
If the array contains objects, a `[*]` alias can be used to select the value of a specific property
337+
If the array is empty, the condition will evaluate to true because no member of the array is in violation. In this scenario, it is recommended to use the [count expression](../concepts/definition-structure.md#count) instead. If the array contains objects, a `[*]` alias can be used to select the value of a specific property
338338
from each array member. Example:
339339

340340
```json

0 commit comments

Comments
 (0)