-
-
Notifications
You must be signed in to change notification settings - Fork 467
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
Response schema for overridden methods of ResponseEntityExceptionHandler is not generated #1208
Comments
Not reproducible. If you are still having any issue, make sure you provide a complete reproducible sample test... |
I think this issue needs to be reopened. I face the same issue as the OP & I think you misunderstood the situation @bnasslahsen. @Oguzhan1942 doesn't use |
I think that without providing an accurate description, it's just not productive to guess the intent of any comment. If the relevant information are provided, the ticket can be reopened. |
I mean OP already put the exact example in the initial post, but I will try to push a complete project this week. |
Ok I had some time: https://github.com/DennisVonDerBey/springdoc-example-issue-1208 The openAPI.json shows the output. As you can see the error description for the 400 BAD REQUEST is missing. |
Describe the feature
For generating documentation using
@ResponseStatus
on methods of my@ControllerAdvice
class I have overridden a method namedhandleMethodArgumentNotValid
ofResponseEntityExceptionHandler
I expect the response code will be generated as it does for@ExceptionHandler
methods.To Reproduce
Steps to reproduce the behavior:
2.4.2
org.springdoc:springdoc-openapi-kotlin:1.5.9
org.springdoc:springdoc-openapi-ui:1.5.9
json
Expected behavior
At least a response code json object 400 Bad Request generated in my api.json file as following.
If this is not the way it suppose to work, I appreciate any kind of help.
Thanks & Best Regards,
Oguzhan
The text was updated successfully, but these errors were encountered: