import { ApiProperty } from '@nestjs/swagger'; import { IsEmail, IsStrongPassword } from 'class-validator'; export class CreateAdminDto { @ApiProperty({ description: 'email please' }) @IsEmail() email: string; @ApiProperty() @IsStrongPassword({ minLength: 5 }) password: string; @ApiProperty() mobile: string; }