Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

FreeBuilder should respect @JacksonXmlProperty annotations #294

Closed
sdqali opened this issue Mar 24, 2018 · 1 comment · Fixed by #295
Closed

FreeBuilder should respect @JacksonXmlProperty annotations #294

sdqali opened this issue Mar 24, 2018 · 1 comment · Fixed by #295

Comments

@sdqali
Copy link
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
Copy link
Contributor Author

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
…ssor methods.

Use common assert method for all Jackson annotations
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants