mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-16 09:41:31 +10:00
19 lines
287 B
TypeScript
19 lines
287 B
TypeScript
import { IsEmail, IsNotEmpty, IsString, MinLength } from 'class-validator';
|
|
|
|
export class RegisterDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
name: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
username: string;
|
|
|
|
@IsEmail()
|
|
@IsNotEmpty()
|
|
email: string;
|
|
|
|
@MinLength(6)
|
|
password: string;
|
|
}
|