Skip to content

Commit

Permalink
Merge pull request #206 from souravbhowmik1999/emailValidation
Browse files Browse the repository at this point in the history
User Create: Email Field Optional for User Creation
  • Loading branch information
vijaykhollam authored Jun 12, 2024
2 parents 7c015f7 + 32fc88a commit ee17d4d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/user/dto/user-create.dto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Expose, Type } from "class-transformer";
import { Expose, Type } from "class-transformer";
import {
MaxLength,
IsNotEmpty,
Expand All @@ -13,7 +13,7 @@ import {
import { User } from "../entities/user-entity";
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";

export class tenantRoleMappingDto{
export class tenantRoleMappingDto {
@ApiProperty({
type: String,
description: "Tenant Id",
Expand Down Expand Up @@ -42,7 +42,7 @@ export class tenantRoleMappingDto{
roleId: string;
}

export class FieldValuesDto{
export class FieldValuesDto {
@ApiPropertyOptional({
type: String,
description: "Field Id",
Expand Down Expand Up @@ -91,8 +91,6 @@ export class UserCreateDto {
description: "The email of the user",
})
@Expose()
@IsEmail()
@IsNotEmpty()
email: string;

@ApiProperty({
Expand Down

0 comments on commit ee17d4d

Please sign in to comment.