Skip to content

Commit 9efb296

Browse files
Ajouter mongoose-to-swagger et les validations supplémentaires
1 parent 1c672fe commit 9efb296

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"ioredis": "^5.3.2",
6969
"loglevel": "^1.8.1",
7070
"mongoose": "^8.0.2",
71+
"mongoose-to-swagger": "^1.5.1",
7172
"nest-winston": "^1.9.4",
7273
"nestjs-request-context": "^3.0.0",
7374
"passport": "^0.6.0",

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@ export class additionalFieldsPartDto {
1414
name: 'attributes',
1515
})
1616
attributes: { [key: string]: any };
17+
18+
@ApiProperty({
19+
type: 'object',
20+
name: 'validations',
21+
})
22+
validations: { [key: string]: { [key: string]: string } };
1723
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7438,6 +7438,11 @@ mongodb@^5.9.1:
74387438
optionalDependencies:
74397439
"@mongodb-js/saslprep" "^1.1.0"
74407440

7441+
mongoose-to-swagger@^1.5.1:
7442+
version "1.5.1"
7443+
resolved "https://registry.yarnpkg.com/mongoose-to-swagger/-/mongoose-to-swagger-1.5.1.tgz#74f7e08b7872cd4ea9bb8d92e855808cc820cf54"
7444+
integrity sha512-gwEr0NhA+DyGswtgypIoV/iR0RGX4jY/SE9zmYYk6qpG2C83urcQfYJWzm7PsDPo3snMm8XjBYiAtLyYAqirXA==
7445+
74417446
mongoose@^8.0.2:
74427447
version "8.0.2"
74437448
resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-8.0.2.tgz#badfa71992893d5692bcbe53db8708f637354c82"

0 commit comments

Comments
 (0)