Package io.envoyproxy.pgv
Class RepeatedValidation
java.lang.Object
io.envoyproxy.pgv.RepeatedValidation
RepeatedValidation implements PGV validators for collection-type validators.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidforEach(List<T> values, RepeatedValidation.ValidationConsumer<T> consumer) static <T> voidstatic <T> voidstatic <T> void
-
Method Details
-
minItems
public static <T> void minItems(String field, List<T> values, int expected) throws ValidationException - Throws:
ValidationException
-
maxItems
public static <T> void maxItems(String field, List<T> values, int expected) throws ValidationException - Throws:
ValidationException
-
unique
- Throws:
ValidationException
-
forEach
public static <T> void forEach(List<T> values, RepeatedValidation.ValidationConsumer<T> consumer) throws ValidationException - Throws:
ValidationException
-