WEBVTT

1
00:00:00.000 --> 00:00:00.280
And this response, we're seeing
the default error messages provided for

2
00:00:00.280 --> 00:00:02.780
each validation error item.

3
00:00:02.780 --> 00:00:07.550
Let's instead display clear and
more useful custom error messages.

4
00:00:07.550 --> 00:00:11.670
Sequalize offers several built-in
validators that allow you to specify

5
00:00:11.670 --> 00:00:16.630
validations for each attribute of the
model as well as custom error messages.

6
00:00:16.630 --> 00:00:22.753
To begin using them, add a validate object
inside a models attribute object like so.

7
00:00:25.192 --> 00:00:30.000
The notNull validator allows you to
customize the allowNull false error
