You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception handlers annotated with @ApiResponse and @ResponseStatus seem to be applied to all operations, even if the implementing operation method handler does not throw the exception handled by the exception handler.
@bnasslahsen I can confirm you that, by using version 2.3.1-SNAPSHOT, the problem is completely gone and everything seems to work as expected. Thank you for the effort, looking forward to the release of version 2.3.1!
Describe the bug
Exception handlers annotated with
@ApiResponse
and@ResponseStatus
seem to be applied to all operations, even if the implementing operation method handler does not throw the exception handled by the exception handler.To Reproduce
Steps to reproduce the behavior:
org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0
Expected behavior
I would expect only the greeting operation to be documented with the invalid name exception, but the hello exception is also documented with it.
The text was updated successfully, but these errors were encountered: