managarten/mana-core-auth/src/auth/dto/register.dto.ts
2025-11-25 18:56:35 +01:00

16 lines
282 B
TypeScript

import { IsEmail, IsString, MinLength, MaxLength, IsOptional } from 'class-validator';
export class RegisterDto {
@IsEmail()
email: string;
@IsString()
@MinLength(8)
@MaxLength(128)
password: string;
@IsString()
@IsOptional()
@MaxLength(255)
name?: string;
}