Skip to content

API reference > @kontsedal/olas-core > FormValidator

FormValidator type ​

A form-level validator, for rules across fields. It sees the wholeFormValue<S>. A string result lands in the form's topLevelErrors, and a FormIssue[] routes each message to the field its path names.

Signature:

typescript
type FormValidator<S extends FormSchema> = Validator<FormValue<S>>;

References: FormSchema, Validator, FormValue

Released under the MIT License.