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

Encoding form parameters via RequestBody on Method Level #3644

Closed
wants to merge 3 commits into from
Closed

Encoding form parameters via RequestBody on Method Level #3644

wants to merge 3 commits into from

Conversation

BenjaminHetzjelli
Copy link

@BenjaminHetzjelli BenjaminHetzjelli commented Jul 20, 2020

Maybe addresses part of #3282
Definitely addresses #3643

Allow setting encoding for form parameters via the @RequestBody annotation on method level. It could be more natural for users to allow using @Parameter on each @FormParam, but this way introduced a lot less complication to the code, esp in handling the params correctly both wrapped into and unwrapped from an @BeanParam.

I've also added a couple tests to make sure it is read properly.

@BenjaminHetzjelli BenjaminHetzjelli changed the title Encoding form params Encoding form parameters via RequestBody on Method Level Jul 20, 2020
= and others added 3 commits August 15, 2020 08:52
Allow encoding for form parameters via the RequestBody annotation on
method level.
- Format according to style guide
- Remove extra prints from IT debugging
- Remove unused import that was added by accident
- Add test for FormParam without being wrapped in @BeanParam
- Reduce number of vars in test method.
- Change incomplete comment. I can't remember what it was supposed to be.
- Move content var declaration into tighter scope.
@frantuma
Copy link
Member

@BenjaminHetzjelli thanks! this is replaced by #3696, see comment there and in original question

@frantuma frantuma closed this Sep 10, 2020
@BenjaminHetzjelli
Copy link
Author

Thanks so much! The solution you've implemented seems great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants