-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update user's info with empty body. Invalid error message. #275
Comments
Hi @TetianaPerinha I would like to take up this issue. Could you assign it to me |
Hey @DarsiSreelekha, I've assigned this task to you. If you have any questions, feel free to ask. |
|
@Sunagatov Could you help, please? |
I understood that the dto class UpdateUserAccountRequest is generated from openapi spec. So, have made necessary changes in the same and raised PR. Please review it. |
[Issue #275] Fix. Error response of Update User API.
Description: When sending a request to update user's info with an empty body, the app return a clear error message in string format.
Precondition: The user authorized and gets Bearer token
Steps to Reproduce: replace token with valid data
Send a PUT request to the endpoint http://localhost:8083/api/v1/users using the HTTP PUT method with an empty JSON object {} as the body.
curl --location --request PUT 'http://0.0.0.0:8083/api/v1/users'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer {token}'{
}'
2. Observe response message.
Expected result: format message should be a string. "First name is the mandatory attribute" and "Last name is the mandatory attribute"
Actual result: format message is list dictionary.
The text was updated successfully, but these errors were encountered: