-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Handling Accept with both Consumes/Produces and HeaderParam annotations in JAX-RS contract #890
Comments
That is intentional. The JAXRS annotations we support are meant to help with setting up clients but do not implement the JAXRS specification. What you've run into one of those situations. The |
There is a bug in the |
My forked project fixed it, but add some additional dealing with Content-Type and Accept to make them overwritable from a parameter with the same name.
|
I am facing the API of JAX-RS 2.0 contract with this definition:
This is a design for supporting multiple data model and choose reply data model by the Accept header. But when I using OpenFeign 10.0.1, it put all the Produces and Accept into accept parameter into header.
We suppose to send only the header value in the parameter in this scenario.
And another issue is the @Conumes, when there are multiple values, it send all in Content-Type header. I think that may not make sense to have a body with multiple types.
I am not sure whether this is a mismatching of JAX-RS 2.0 definition or whatever.
The text was updated successfully, but these errors were encountered: