config / org.apache.tuweni.config / PropertyValidator / allInList

allInList

open static fun <T : Any> allInList(validator: PropertyValidator<in T>): PropertyValidator<MutableList<T>> (source)

A validator that applies a validator to all elements of list, if the list is present.

Parameters

validator - The validator to apply to elements of the list.

- The type of list elements.

Return
A validator that applies a validator to all elements of list, if the list is present.