-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Serializer] SerializedName based on groups #30483
Comments
maybe this would be less problematic to change the existing code:
|
in any case it is difficult to add this feature without break BC... @dunglas wdyt ? |
Any updates? this would be great :) |
or alternatives ? maybe ? |
using getter and setter could be a solution, but it will be a getter and setter for each group |
PR welcome, it shouldn't be too hard to implement without BC break ( |
I can try this week end |
@jsamouh it's a new feature so you must start from master. |
Do we agree to use this syntax for annotation ? * @SerializedName({
* {"name"="Test0"},
* {"name"="Test1", "groups"={"group1"}},
* {"name"="Test2", "groups"={"group2"}},
* }) |
First try on annotation.
|
Thank you for this suggestion. |
Just a quick reminder to make a comment on this. If I don't hear anything I'll close this. |
I would still like to see this. |
Me too |
Thank you for this suggestion. |
Still relevant in my opinion |
It would be nice ! |
Really nice! |
will dot it next week |
any update? |
@jsamouh Did you switch week in your calendar? 😉 |
Hey guys :) Do you have any news on this? |
Thank you for this suggestion. |
Yes. It would be awesome to have this. |
Yes, sir 🙂 |
Yes, it would be awesome. |
Someone will have to do the actual work for this. It doesn't look like that is the case. |
See #46432 ;) |
Thank you for this suggestion. |
Friendly reminder that this issue exists. If I don't hear anything I'll close this. |
Hey guys! So glad this feature will be released in 6.3! And it would also be awesome if serialized_path could be able to be based on groups too! Does anyone agree? I did a search and didn't find anything related to this. Thanks! |
Any update on this ? |
Please see the #46432 PR mentioned above by @nicolas-grekas |
Description
It would be helpful to be able to change the serialized name based on the serialization group.
Example
The text was updated successfully, but these errors were encountered: