Skip to content

API reference > @kontsedal/olas-core > FieldArrayValidator

FieldArrayValidator type ​

An array-level validator, for rules such as "at least one item". It sees every item's value. A string result lands in the array's topLevelErrors, and a FormIssue[] routes each message by its path, item index first.

Signature:

typescript
type FieldArrayValidator<I> = Validator<FieldArrayValue<I>>;

References: Validator, FieldArrayValue

Released under the MIT License.