We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Using @Produces with non-standard content type does not work with resteasy-reactive. It will always serialize with toString.
@Produces
Expected behavior It should serialize with the correct serializer depending on the content type (e.g. jackson when Content-Type ends with +json)
+json
Actual behavior It serializes with toString()
To Reproduce
Steps to reproduce the behavior:
@Produces("application/vnd.quarkus.fruit-v1+json")
curl -H "Content-Type: application/vnd.quarkus.fruit-v1+json" http://localhost:8080/fruits -d'{"name": "apple"}' -v
The text was updated successfully, but these errors were encountered:
/cc @FroMage, @geoand, @stuartwdouglas
Sorry, something went wrong.
I have a fix for this but it breaks some of the TCK tests which means I'll need to dig into it more
Use media type as suffix as subtype for locating writers if necessary
7eb7ba7
Fixes: quarkusio#14023
Merge pull request #14027 from geoand/#14023
d9beec7
Use media type suffix as subtype for locating writers if necessary
geoand
Successfully merging a pull request may close this issue.
Describe the bug
Using
@Produces
with non-standard content type does not work with resteasy-reactive. It will always serialize with toString.Expected behavior
It should serialize with the correct serializer depending on the content type (e.g. jackson when Content-Type ends with
+json
)Actual behavior
It serializes with toString()
To Reproduce
Steps to reproduce the behavior:
@Produces("application/vnd.quarkus.fruit-v1+json")
to POST methodcurl -H "Content-Type: application/vnd.quarkus.fruit-v1+json" http://localhost:8080/fruits -d'{"name": "apple"}' -v
The text was updated successfully, but these errors were encountered: