Skip to content

Commit c61267f

Browse files
committed
fix/hide the variable from api documentation and make it false by default
Signed-off-by: sujitaw <[email protected]>
1 parent 2ff04b9 commit c61267f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/api-gateway/src/user/dto/create-user.dto.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
1+
import { ApiHideProperty, ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
22
import { IsBoolean, IsEmail, IsNotEmpty, IsOptional, IsString, IsUrl, MaxLength } from 'class-validator';
33
import { toLowerCase, trim } from '@credebl/common/cast.helper';
44

@@ -39,8 +39,8 @@ export class UserEmailVerificationDto {
3939
@Transform(({ value }) => trim(value))
4040
clientAlias?: string;
4141

42-
@ApiPropertyOptional()
42+
@ApiHideProperty()
4343
@IsOptional()
4444
@IsBoolean({ message: 'isDefaultVerified should be boolean' })
45-
isDefaultVerified?: boolean;
45+
isDefaultVerified: boolean = false;
4646
}

0 commit comments

Comments
 (0)