Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

@RequestBody should be populated with @Consumes from method or class when mediaType is not specified #2403

Closed
arturdzm opened this issue Aug 25, 2017 · 2 comments

Comments

@arturdzm
Copy link

arturdzm commented Aug 25, 2017

Since the RequestBody, ApiResponse and Parameter all have content
I think we can have 1 method called
getContent(Content[] content, String[] mediaTypes)
so each type can pass in value() of @consumes or @produces
or null if no mediaTypes specified.
if mediaTypes is null set it to */*

@ralphdoe
Copy link
Contributor

You're totally right, @arturdzm. I have solved this here: #2404

@frantuma
Copy link
Member

frantuma commented Oct 6, 2017

closing as implemented in related PRs

@frantuma frantuma closed this as completed Oct 6, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants