Serializing properties without groups #5154
Replies: 5 comments
-
Just define a |
Beta Was this translation helpful? Give feedback.
-
Can you tell me a good place to add this using a decorator or service override? Maybe this is really a more serializer related question |
Beta Was this translation helpful? Give feedback.
-
I wouldn't suggest adding the |
Beta Was this translation helpful? Give feedback.
-
@teohhanhui How about adding dynamically a serialization group name like |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
This maybe related to the serializer, but I'm a bit unsure so I'm asking this question here. Let's say I have an entity Book:
What I'm trying to achieve now is to serialize the $foo property, regardless of the current context groups. Is there some way to configure some kind of "default group" for properties where no group was given?
I know I could just add the group to my property, but I was hoping to configure something (or decorate something) so the serializer will return the property $foo.
TLDR: How can I define a default group for all properties?
Beta Was this translation helpful? Give feedback.
All reactions