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
As we know, MapExtraPropertiesTo() maps only defined properties by default.
However, ExtraProperties in input DTOs constructed on HTTP requests accept any undefined property. I believe that converting HTTP requests to input DTOs is also a kind of mapping that should validate that the properties are defined.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
As we know,
MapExtraPropertiesTo()
maps only defined properties by default.However,
ExtraProperties
in input DTOs constructed on HTTP requests accept any undefined property. I believe that converting HTTP requests to input DTOs is also a kind of mapping that should validate that the properties are defined.Is this by design or a bug?
Beta Was this translation helpful? Give feedback.
All reactions