Skip to content

Commit 2430dd6

Browse files
committed
fix: Initialize optional properties in inetOrgPersonCreateDto to empty string
1 parent c02f33a commit 2430dd6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/management/identities/_dto/_parts/inetOrgPerson.dto.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class inetOrgPersonCreateDto {
3232
@IsString()
3333
@ApiProperty({ required: false })
3434
@IsOptional()
35-
public displayName?: string;
35+
public displayName?: string = '';
3636

3737
@IsString()
3838
@ApiProperty({ required: false })
@@ -42,7 +42,7 @@ export class inetOrgPersonCreateDto {
4242
@IsString()
4343
@ApiProperty({ required: false })
4444
@IsOptional()
45-
public givenName?: string;
45+
public givenName?: string = '';
4646

4747
@IsString()
4848
@ApiProperty({ required: false })
@@ -57,17 +57,17 @@ export class inetOrgPersonCreateDto {
5757
@IsString()
5858
@ApiProperty({ required: false })
5959
@IsOptional()
60-
public mobile?: string;
60+
public mobile?: string = '';
6161

6262
@IsString()
6363
@ApiProperty({ required: false })
6464
@IsOptional()
65-
public postalAddress?: string;
65+
public postalAddress?: string = '';
6666

6767
@IsString()
6868
@ApiProperty({ required: false })
6969
@IsOptional()
70-
public preferredLanguage?: string;
70+
public preferredLanguage?: string = '';
7171

7272
@IsString()
7373
@ApiProperty({ required: false })
@@ -77,7 +77,7 @@ export class inetOrgPersonCreateDto {
7777
@IsString()
7878
@ApiProperty({ required: false })
7979
@IsOptional()
80-
public title?: string;
80+
public title?: string = '';
8181

8282
@IsString()
8383
@ApiProperty({ required: false })

0 commit comments

Comments
 (0)