Skip to content

Commit d32b3b2

Browse files
committed
feat: Add photo field to inetOrgPerson DTO and schema
1 parent 22560e2 commit d32b3b2

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ export class inetOrgPersonCreateDto {
9292
@ApiProperty({ required: false })
9393
@IsOptional()
9494
public jpegPhoto?: string;
95+
96+
@IsString()
97+
@ApiProperty({ required: false })
98+
@IsOptional()
99+
public photo?: string;
95100
}
96101

97102
export class inetOrgPersonDto extends inetOrgPersonCreateDto { }

src/management/identities/_schemas/_parts/inetOrgPerson.part.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class inetOrgPerson extends Document {
3131
public preferredLanguage?: string;
3232

3333
@Prop({ type: String, required: true })
34-
sn: string;
34+
public sn: string;
3535

3636
@Prop({ type: String, default: null })
3737
public telephoneNumber?: string;
@@ -54,6 +54,9 @@ export class inetOrgPerson extends Document {
5454
@Prop({ type: String, default: null })
5555
public jpegPhoto?: string;
5656

57+
@Prop({ type: String, default: null })
58+
public photo?: string;
59+
5760
@Prop({ type: String, default: null })
5861
public userCertificate?: string;
5962

src/management/identities/validations/_config/inetorgperson.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@
7272
"description": "User password of the inetOrgPerson."
7373
},
7474
"jpegPhoto": {
75+
"type": "string",
76+
"description": "User jpeg photo of the inetOrgPerson."
77+
},
78+
"photo": {
7579
"type": "string",
7680
"description": "User photo of the inetOrgPerson."
7781
}

0 commit comments

Comments
 (0)