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

Alphabetical accessor order doesn't respect SerializedName overrides #240

Closed
paulferrett opened this issue Feb 20, 2014 · 3 comments
Closed

Comments

@paulferrett
Copy link

When you override a property's name with a SerializedName config, the original name is still used when ordering the properties using the "alphabetical" accessor ordering.

I'm happy to fix this issue if you'd like, and think it's an issue. If this is desired behaviour, or you think it could break existing code, I could implement it as a new ordering strategy?

@schmittjoh
Copy link
Owner

We would need to make this a new strategy I think.

@paulferrett
Copy link
Author

So the hardest part then becomes naming it! Suggest ACCESSOR_ORDER_SERIALIZED_NAME_ALPHABETICAL - too long?

@goetas
Copy link
Collaborator

goetas commented Apr 24, 2017

implementing this feature will not be possible, especially for xml serialization.

please use custom access order

@goetas goetas closed this as completed Apr 24, 2017
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

3 participants