- Fix Next.js build failure: remove duplicate route at (dashboard)/listings/[id] that conflicted with (public)/listings/[id] (same URL path in two route groups) - Fix 772 ESLint errors: auto-fix import ordering (import-x/order), remove unused imports/variables, convert empty interfaces to type aliases, replace require() with ESM imports, fix consistent-type-imports violations - Add CLAUDE.md for developer onboarding documentation - All checks pass: 0 lint errors, typecheck clean, 230 tests passing, build success Co-Authored-By: Paperclip <noreply@paperclip.ing>
24 lines
584 B
TypeScript
24 lines
584 B
TypeScript
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
import { IsString, IsOptional, IsEmail, MinLength } from 'class-validator';
|
|
|
|
export class RegisterDto {
|
|
@ApiProperty({ example: '0901234567', description: 'Phone number' })
|
|
@IsString()
|
|
phone!: string;
|
|
|
|
@ApiProperty({ example: 'P@ssw0rd!', minLength: 8 })
|
|
@IsString()
|
|
@MinLength(8)
|
|
password!: string;
|
|
|
|
@ApiProperty({ example: 'Nguyen Van A' })
|
|
@IsString()
|
|
@MinLength(1)
|
|
fullName!: string;
|
|
|
|
@ApiPropertyOptional({ example: 'user@example.com' })
|
|
@IsOptional()
|
|
@IsEmail()
|
|
email?: string;
|
|
}
|