fix(server): user update (#2143)

* fix(server): user update

* update dto

* generate api

* improve validation

* add e2e tests for updating user

---------

Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
This commit is contained in:
Alex
2023-04-01 11:43:45 -05:00
committed by GitHub
parent aaaf1a6cf8
commit d04f340b5b
10 changed files with 117 additions and 86 deletions

View File

@@ -4812,29 +4812,31 @@
"UpdateUserDto": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"email": {
"type": "string"
"type": "string",
"example": "testuser@email.com"
},
"password": {
"type": "string"
"type": "string",
"example": "password"
},
"firstName": {
"type": "string"
"type": "string",
"example": "John"
},
"lastName": {
"type": "string"
"type": "string",
"example": "Doe"
},
"id": {
"type": "string",
"format": "uuid"
},
"isAdmin": {
"type": "boolean"
},
"shouldChangePassword": {
"type": "boolean"
},
"profileImagePath": {
"type": "string"
}
},
"required": [