ValidationResult<T, E extends ValidationError> extension
Extensions to facilitate manipulating validation results.
Properties
- firstError → E?
-
Available on Either<
Gets the first error according to the composition sequence used creating of calling validation resultList< , provided by the ValidationResult extensionE> , T>no setter
Methods
-
errorsGroupedBy<
K> (Selector< E, K> tagSelector) → Map<K, List< E> > -
Available on Either<
Returns a map of grouped validation errors keyed by a formfield type.List< , provided by the ValidationResult extensionE> , T> -
singleErrorsBy<
K> (Selector< E, K> tagSelector) → Map<K, String> -
Available on Either<
Returns a map of formfield, error key value pairs.List< , provided by the ValidationResult extensionE> , T>