Open History to see the last commit
1---
2id: BaseValidator
3title: BaseValidator
4---
5β
6Defined in: [validation.public.ts:17](https://github.com/TanStack/form/blob/main/packages/form-core/src/validation.public.ts#L17)
7β
8A validation function or Standard Schema with an optional rule to stop after earlier failures.
9β
10## Extended by
11β
12- [`Validator`](Validator.md)
13- [`FormValidator`](FormValidator.md)
14β
15## Type Parameters
16β
17### TValidator
18β
19`TValidator` *extends*
20 \| [`StandardSchemaV1`](../type-aliases/StandardSchemaV1.md)
21 \| [`ValidatorFn`](../type-aliases/ValidatorFn.md)\<`any`, `any`\>
22β
23Library-managed. Do not specify explicitly.
24β
25## Properties
26β
27### bailIfInvalid?
28β
29```ts
30optional bailIfInvalid?: boolean;
31```
32β
33Defined in: [validation.public.ts:29](https://github.com/TanStack/form/blob/main/packages/form-core/src/validation.public.ts#L29)
34β
35If `true`, skips this and subsequent validators when earlier validation has failed.
36β
37If `false`, earlier failures do not prevent this validator from running.
38β
39#### Default
40β
41```ts
42false
43```
44β
45***
46β
47### run
48β
49```ts
50run: TValidator;
51```
52β
53Defined in: [validation.public.ts:21](https://github.com/TanStack/form/blob/main/packages/form-core/src/validation.public.ts#L21)
54β
55The function or Standard Schema that validates the value in this validator's scope.