Add quantifiers for allOf or anyOf operators #1423
Labels
enhancement
New feature or request
feature: language
Issues that affect language such keywords and variables
Milestone
When processing
allOf
oranyOf
operators we may want to determine if a specific quantity of results passed when enumerating through afield
.With
greaterOrEqual
:With
count
:As shown
anyOf
will enumerate throughproperties.log[*]
. The number of items that return true will be counted.As is the normal behaviour for PSRule,
greaterOrEqual
will return true if the number of items is greater or equal to the number specified. Where ascount
will return true if the number of items is the exact number.Items are only counted if the inner conditions of
anyOf
orallOf
return true.The text was updated successfully, but these errors were encountered: