We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad5ec85 commit ebbebfdCopy full SHA for ebbebfd
src/entity/user.ts
@@ -1,5 +1,5 @@
1
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
2
-import { Length, IsEmail, IsNotEmpty } from 'class-validator';
+import { Length, IsEmail } from 'class-validator';
3
4
@Entity()
5
export class User {
@@ -9,7 +9,6 @@ export class User {
9
@Column({
10
length: 80
11
})
12
- @IsNotEmpty()
13
@Length(10, 80)
14
name: string;
15
@@ -18,6 +17,5 @@ export class User {
18
17
19
@Length(10, 100)
20
@IsEmail()
21
22
email: string;
23
}
0 commit comments