class-validator#IsEmail TypeScript Examples
The following examples show how to use
class-validator#IsEmail.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RegisterUserCommand.ts From test with BSD 3-Clause "New" or "Revised" License | 6 votes |
@IsEmail(
{},
{
message: messages.invalidEmail.defaultMessage,
},
)
@IsEntityNotExists(
{
entity: User,
field: '"emailAddress"',
},
{
message: messages.emailAlreadyExists.defaultMessage,
},
)
email: string
Example #2
Source File: create-user.dto.ts From nestjs-starter with MIT License | 6 votes |
@ApiProperty({
description: 'Email for your account, must be unique.',
})
@IsEmailAlreadyExist({
message: 'Email $value already exists. Choose another Email.',
})
@IsEmail()
@IsString()
@IsNotEmpty()
email!: string;
Example #3
Source File: create-user.request.dto.ts From domain-driven-hexagon with MIT License | 6 votes |
@ApiProperty({
example: '[email protected]',
description: 'User email address',
})
@MaxLength(320)
@MinLength(5)
@IsEmail()
@Field() // <- only if you are using graphql
readonly email: string;
Example #4
Source File: request-password-reset.dto.ts From uniauth-backend with MIT License | 6 votes |
/** college email id of student */
@IsNotEmpty()
@IsEmail()
@ApiProperty({
description: 'college email id of student ',
example: '[email protected]',
required: true,
})
email: string;
Example #5
Source File: user.ts From MyAPI with MIT License | 6 votes |
@ApiProperty({ description: 'Email' })
@Column({ type: 'varchar', length: 50 })
@Index('IDX_USER_EMAIL', { unique: true })
@IsEmail({}, {
message: 'The email is not valid'
})
@IsNotEmpty({
message: 'Email is required'
})
email: string
Example #6
Source File: login.dto.ts From uniauth-backend with MIT License | 6 votes |
/** college email id of student */
@IsNotEmpty()
@IsEmail()
@ApiProperty({
description: 'college email id of student ',
example: '[email protected]',
required: true,
})
email: string;
Example #7
Source File: user-update.dto.ts From bank-server with MIT License | 5 votes |
@IsString()
@ApiProperty()
@IsEmail()
@IsOptional()
readonly email?: string;
Example #8
Source File: User.ts From bulwark with MIT License | 5 votes |
@Column({
nullable: true,
})
@IsEmail()
newEmail: string;
Example #9
Source File: user-profile.model.ts From nestjs-angular-starter with MIT License | 5 votes |
@IsEmail()
email: string;
Example #10
Source File: update-user-dto.ts From nestjs-starter with MIT License | 5 votes |
@ApiProperty()
@IsEmailAlreadyExist({ message: 'Email $value already exists. Choose another Email.' })
@IsEmail()
@IsString()
@IsOptional()
email: string;
Example #11
Source File: CreateUserAdapter.ts From typescript-clean-architecture with MIT License | 5 votes |
@Expose()
@IsEmail()
public email: string;
Example #12
Source File: CreateUserRequest.ts From spurtcommerce with BSD 3-Clause "New" or "Revised" License | 5 votes |
@IsEmail({}, {
message: 'Please provide username as emailId',
})
@IsNotEmpty({
message: 'username is required',
})
public username: string;
Example #13
Source File: user-register.dto.ts From bank-server with MIT License | 5 votes |
@IsString()
@IsEmail()
@IsNotEmpty()
@ApiProperty()
readonly email: string;
Example #14
Source File: user.create.input.ts From api with GNU Affero General Public License v3.0 | 5 votes |
@Field()
@IsEmail()
@IsNotEmpty()
email: string
Example #15
Source File: User.ts From tezos-academy with MIT License | 5 votes |
@Property({ required: true, unique: true, index: true })
@IsEmail()
email!: string
Example #16
Source File: user.dto.ts From postgres-nest-react-typescript-boilerplate with GNU General Public License v3.0 | 5 votes |
@IsEmail()
email: string;
Example #17
Source File: user-create-input.dto.ts From nestjs-starter-rest-api with MIT License | 5 votes |
@ApiProperty()
@IsNotEmpty()
@IsEmail()
@MaxLength(100)
email: string;
Example #18
Source File: create-admin.dto.ts From mamori-i-japan-api with BSD 2-Clause "Simplified" License | 5 votes |
@ApiProperty({ example: '[email protected]' })
@IsEmail()
@IsNotEmpty()
email: string
Example #19
Source File: CustomerCheckoutRequest.ts From spurtcommerce with BSD 3-Clause "New" or "Revised" License | 5 votes |
@IsEmail()
@IsNotEmpty({
message: 'Email Id is required',
})
public emailId: string;
Example #20
Source File: user.dto.ts From knests with MIT License | 5 votes |
@IsEmail()
@IsNotEmpty()
email: string;
Example #21
Source File: updateUser.input.ts From next-api-decorators with MIT License | 5 votes |
@IsEmail()
@IsOptional()
public email?: string;
Example #22
Source File: User.ts From spurtcommerce with BSD 3-Clause "New" or "Revised" License | 5 votes |
@IsEmail()
@Column({ name: 'email' })
public email: string;
Example #23
Source File: create-faucet-transaction.dto.ts From ironfish-api with Mozilla Public License 2.0 | 5 votes |
@IsOptional()
@IsEmail()
readonly email?: string;
Example #24
Source File: CreateJobRequest.ts From spurtcommerce with BSD 3-Clause "New" or "Revised" License | 5 votes |
@IsEmail()
public contactPersonEmail: string;
Example #25
Source File: create-application.dto.ts From uniauth-backend with MIT License | 5 votes |
@ApiProperty({ description: 'email displayed at consent page', example: '[email protected]' })
@IsEmail()
supportEmail: string;
Example #26
Source File: ResetPassword.ts From remix-hexagonal-architecture with MIT License | 5 votes |
@IsEmail()
email!: string;
Example #27
Source File: Student.ts From Typescript_TypeORM with Apache License 2.0 | 5 votes |
@Column({
transformer: MyCrypto,
})
@IsEmail()
email: string;
Example #28
Source File: signup.input.ts From amplication with Apache License 2.0 | 5 votes |
@Field({ nullable: false })
@IsEmail()
email: string;
Example #29
Source File: user-register.req.dto.ts From nest-js-quiz-manager with MIT License | 5 votes |
@ApiProperty({
description: 'The email address of the User',
example: '[email protected]',
})
@IsNotEmpty()
@IsEmail()
email: string;