Validating amount of items in array

Hello,
i need to validate amount of items in array, i know about each validator, but it can’t verify min/max items in array

Is there a predefined validator?
Thanks

If you want to validate the length of the array, you have to write a custom validator.

https://www.yiiframework.com/doc/guide/2.0/en/input-validation#creating-validators