Replies: 3 comments 9 replies
-
What compiler error is thrown? You should be able to ignore the property by using the |
Beta Was this translation helpful? Give feedback.
-
I would need something similar. Instead of missing constructor parameters, it's missing required members in my case (error message "RMG023 Required member A on mapping target type X was not found on the mapping source type Y"). I like the new attribute name proposals mentioned here: #335 (reply in thread) |
Beta Was this translation helpful? Give feedback.
-
Closing as there exists an issue now: #631 |
Beta Was this translation helpful? Give feedback.
-
Imagine this repository entity:
and API model:
Using Mapperly, mapping SomeEntity -> SomeAPIModel is fine, because Mapperly will map 3 properties to 2 properties, not vice versa. From SomeAPIModel -> SomeEntity, we missing value for Id. The use of
default
would be OK, because the value will overridden anyway, but generation of mapping would fail on this.Is there any way how to overcome this? How to pass a value for certain properties?
Beta Was this translation helpful? Give feedback.
All reactions