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

Unexpected empty body #116

Open
lowcasz opened this issue Apr 24, 2023 · 0 comments
Open

Unexpected empty body #116

lowcasz opened this issue Apr 24, 2023 · 0 comments

Comments

@lowcasz
Copy link

lowcasz commented Apr 24, 2023

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.

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

No branches or pull requests

1 participant