You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.
The note about the attributes object passed to validate() says:
This object is distinct from the current attributes of the model and from the parameters passed to the operation. Since it is created by shallow copy, it is not possible to change any Number, String, or Boolean attribute of the input within the function, but it is possible to change attributes in nested objects.
So, the nested objects can be changed because they are deep copied? Aren't nested objects the ones that are shallow copied and everything else (direct members of attributes object) is deep copied?
The text was updated successfully, but these errors were encountered:
ghost
changed the title
Shallow copy instead or deep copy?
Shallow copy or deep copy?
Jun 30, 2015
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The note about the
attributes
object passed tovalidate()
says:So, the nested objects can be changed because they are deep copied? Aren't nested objects the ones that are shallow copied and everything else (direct members of attributes object) is deep copied?
The text was updated successfully, but these errors were encountered: