Files
Reactive-Resume/server/src/auth/dto/register.dto.ts
Amruth Pillai 9c1380f401 🚀 release v3.0.0
2022-03-06 22:48:29 +01:00

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;
}