forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The annotation @RestStreamElementType should override @produces at class
According to [the documentation](https://quarkus.io/guides/resteasy-reactive#server-sent-event-sse-support), when using the annotation @RestStreamElementType and there is no @produces annotation set at method level, then RR is automatically using the media type `SERVER_SENT_EVENTS`. However, when there is no @produces annotation set at method level, but it exists at class level, then the class level @produces annotation will be used which is wrong. These changes address the mentioned issue above, so if there is no @produces annotation set at method level, then RR will always use the media type `SERVER_SENT_EVENTS` regardless if the annotation @produces is present at class level. Fix quarkusio#32012
- Loading branch information
Showing
2 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters