feign-form icon indicating copy to clipboard operation
feign-form copied to clipboard

Add support for Enum<?> as Feign client parameters for multipart payload

Open reta opened this issue 6 years ago • 1 comments

Hey guys,

We've run into an issue recently when multipart endpoint uses Java's enumeration (Enum<?>) for some of the parameter. The MultipartFormContentProcessor does recognize the Enum as the POJO and tries to convert it into the Map, ending up with the empty one. As such, all Enum<?> parameters are not being included into the request.

The fix is simple (add EnumWriter), the test cases is provided, easy to reproduce. Thank you.

Best Regards, Andriy Redko

reta avatar Aug 02 '19 19:08 reta

Sorry @xxlabaza, may you take a look please? Thank a lot :)

reta avatar Aug 20 '19 23:08 reta