OpenFeign / feign-form

Open Feign form encoder
Apache License 2.0
290 stars 81 forks source link

POJO Writer does not handle Date fields, and does not fall back to the delegate writer like the MulitpartFormContentProcessor does #103

Open WillWolfe89 opened 2 years ago

WillWolfe89 commented 2 years ago

MultipartFormContentProcessor falls back to the Delegate Writer if none of the other writers can handle a field. The PojoWriter loops the other writers to handle fields in an object, but it does not fall back to the Delegate Writer. I solved this by getting the MultipartFormContentProcessor out and adding the DelegateWriter to the list, so that it is passed to the PojoWriter instead of just being the fallback option