Skip to content

ApiResponse DEFAULT_DESCRIPTION Improvement #610

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

Closed
raghuraman1 opened this issue Apr 25, 2020 · 9 comments
Closed

ApiResponse DEFAULT_DESCRIPTION Improvement #610

raghuraman1 opened this issue Apr 25, 2020 · 9 comments
Labels
bug Something isn't working

Comments

@raghuraman1
Copy link

raghuraman1 commented Apr 25, 2020

Hi @bnasslahsen

Remember below code in ControllerAdvice

image

Look at the corresponding responses:

image

Expectation is that instead of "defaultResponse" it should pickup the message from HttpStatus.getReasonPhrase().

Raghu

@raghuraman1
Copy link
Author

raghuraman1 commented Apr 25, 2020

@bnasslahsen The Travis test failed for related PR #611 and I presume thats a good thing. The related tests will need changing. The change I did probably went beyond ControllerAdvices. Basically instead of "defaultResponse" I am trying to make it work using HttpStatus.getReasonPhrase(). Sounds reasonable to me.

@bnasslahsen
Copy link
Collaborator

@raghuraman1,

Ok, i will see the impacts on the tests.
The improvement you propose, is not only related to the controllerAdvice.

@raghuraman1
Copy link
Author

Agreed. I was just writing that its beyond ControlerAdvice.

@raghuraman1
Copy link
Author

@bnasslahsen I can fix the tests as part of the PR

@bnasslahsen
Copy link
Collaborator

@raghuraman1,

It's ok. I have already started the merge.

@bnasslahsen bnasslahsen changed the title ControllerAdvice Improvement ApiResponse DEFAULT_DESCRIPTION Improvement Apr 25, 2020
@raghuraman1
Copy link
Author

I just noticed what you typed. Was committing the test changes

@raghuraman1
Copy link
Author

raghuraman1 commented Apr 25, 2020

@bnasslahsen I do wish I could have some PR committed in my name also. :)
Some day will happen I guess.
But you are fast and gud.

@bnasslahsen
Copy link
Collaborator

@raghuraman1,

Next time 👍

@raghuraman1
Copy link
Author

raghuraman1 commented Apr 25, 2020

@bnasslahsen This time it was like a robbery from my point of view. :)
But you guys are making a great product.
Meanwhile Eagerly waiting for next release. We have lots of fixes to be released.

@bnasslahsen bnasslahsen added the bug Something isn't working label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants