Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

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

Open
reta wants to merge 1 commit intoOpenFeign:masterfrom
reta:support.enum
Open

Add support for Enum<?> as Feign client parameters for multipart payload#76
reta wants to merge 1 commit intoOpenFeign:masterfrom
reta:support.enum

Conversation

@reta
Copy link

@reta reta commented Aug 2, 2019

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
Copy link
Author

reta commented Aug 20, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant