-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Serializer] Update serializer.rst #16912
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
Conversation
In the PropertyInfo component I can find references to But in the Serializer component I can't find any references to them. This is what I see: |
OP probably looks at it from POV of normalization only and is forgetting about denormalization. |
Object normalization/denoramilzation definitely takes into account adders/removers for array properties. As @javiereguiluz points out, when denormalizing it uses the PropertyInfo component to set the value of an array property. If there is not a However, the section that OP is editing is specifically to do with boolean attributes. I would imagine that adders/removers are not considered for boolean properties, however I am not certain of this. |
ping @mtarld |
Indeed, as @javiereguiluz and @ndench pointed out, the PropertyInfo can find So I think it doesn't make sense to mention them here. |
Thank you all for the clarification. In fact, I assumed the edited part is talking about booleans attributes based on the first phrase context is about the I think we can adjust it somehow to be more clear like: The
for |
I have checked ``ObjectNormalizer`` and I found only methods start by (has, get, and can) can be detected automatically for normalising them Am I wrong?
Thank you @sfmok. |
I have checked
ObjectNormalizer
and I found only methods start by (is, has, get, and can) can be detected automatically for normalising themAm I wrong?