Skip to content
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

The annotation @RestStreamElementType should override @Produces at class #32038

Merged
merged 1 commit into from
Mar 23, 2023

Commits on Mar 22, 2023

  1. 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
    Sgitario committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    0888449 View commit details
    Browse the repository at this point in the history