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

Unexpected empty body

Open lowcasz opened this issue 2 years ago • 0 comments

Encoder should map final fields or even log reason of skip fields.

I'm using in project immutable objects supported by lombok @Value.

I spent a lot lot of time to debug why I have empty body using "consumes = APPLICATION_FORM_URLENCODED_VALUE". All encoders normally encode immutable objects to json, but this one does not. IMO final fields should be serialized. Modifier transient can be used to skip it. It would be nice to have logging of skipped fields and reason of it when FULL logging level is used.

lowcasz avatar Apr 24 '23 21:04 lowcasz