Getting 0% score for Uni<Response> return type #25402
Answered
by
mschorsch
omar-zahid
asked this question in
Q&A
-
I'm using Hibernate reactive panache Active Record method to create API's. However, the writer score is 0% if I return a Uni of type Response. Here's the code.
Any help is appreciated. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
mschorsch
May 15, 2022
Replies: 1 comment 1 reply
-
With a Response quarkus is not able to determine the type of the entity and cannot register writers at build time. Instead of Response you should use RestResponse<...> (https://quarkus.io/guides/resteasy-reactive#manually-setting-the-response). |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
omar-zahid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With a Response quarkus is not able to determine the type of the entity and cannot register writers at build time. Instead of Response you should use RestResponse<...> (https://quarkus.io/guides/resteasy-reactive#manually-setting-the-response).