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
Is your feature request related to a problem? Please describe.
I would like the option to set a default value on the target member when the source cannot provide it.
We now have to constantly make a second mapping function in a separate class just to set a boolean to true or an int to 1 or ....
I would like a new Attribute to instruct Mapperly to generate a default value for a target member.
I would also like to get an compiler warning when this would override a mapping for a source member.
I can see use cases were overriding member mappings is desired. That could be implemented with a different attribute or an extra parameter on this one. In that case i expect no compiler warning, because this explicitly instructs mapperly to override the source.
Is your feature request related to a problem? Please describe.
I would like the option to set a default value on the target member when the source cannot provide it.
We now have to constantly make a second mapping function in a separate class just to set a boolean to true or an int to 1 or ....
Describe the solution you'd like
I would like a new Attribute to instruct Mapperly to generate a default value for a target member.
I would also like to get an compiler warning when this would override a mapping for a source member.
Describe alternatives you've considered
I can see use cases were overriding member mappings is desired. That could be implemented with a different attribute or an extra parameter on this one. In that case i expect no compiler warning, because this explicitly instructs mapperly to override the source.
Additional context
The text was updated successfully, but these errors were encountered: