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

FreeBuilder should respect @JacksonXmlProperty annotations #294

Closed
sdqali opened this Issue Mar 24, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@sdqali
Contributor

sdqali commented Mar 24, 2018

Jackson allows methods to be serialized to and de-serialized from different XML and JSON representations by using a combinations of the @JsonProperty and @JacksonXmlProperty annotations.
Currently, FreeBuilder looks for only @JsonProperty and adds them to the result.
This makes FreeBuilder unsuitable for situations where a class need to have different XML and JSON representations.

@sdqali

This comment has been minimized.

Show comment
Hide comment
@sdqali

sdqali Mar 26, 2018

Contributor

@chrisalice I have a patch that addresses this. I will submit it once I have confirmed that I can sign the CLA.

Contributor

sdqali commented Mar 26, 2018

@chrisalice I have a patch that addresses this. I will submit it once I have confirmed that I can sign the CLA.

sdqali added a commit to sdqali/FreeBuilder that referenced this issue Mar 28, 2018

inferred#294 - Retain @JacksonXmlProperty annotations present on acce…
…ssor methods.

Use common assert method for all Jackson annotations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment