[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow](../../README) / [index](../README) / ValidationRules

# Type Alias: ValidationRules

> **ValidationRules** = `Record`\<`string`, (`rule`) => [`FieldRule`](../../../validator/interfaces/FieldRule)\>

Defined in: [flow/src/validation.ts:26](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/validation.ts#L26)

A per-field rule map built with the framework validator's chain — the explicit-rules form of
`this.validate(...)`, mirroring the `@validate` decorator. Keys are field names; each value is a
builder callback that turns the fluent [RuleBuilder](../../../validator/classes/RuleBuilder) into a [FieldRule](../../../validator/interfaces/FieldRule).

## Example

```ts
this.validate({
  name:  (rule) => rule.required().min(2).max(50),
  email: (rule) => rule.required().email(),
} satisfies ValidationRules);
```
