17 lines
323 B
TypeScript
17 lines
323 B
TypeScript
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
import {
|
|
IsEmail,
|
|
IsNotEmpty,
|
|
} from 'class-validator';
|
|
|
|
export class RegisterUserRequestDTO {
|
|
@ApiProperty({
|
|
description: "User's email",
|
|
example: 'user@example.com',
|
|
type: 'string',
|
|
})
|
|
@IsEmail()
|
|
@IsNotEmpty()
|
|
email: string;
|
|
}
|