Replies: 1 comment
-
Created #660 to emit a diagnostic if an object mapping is created without mapping any members. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, when I have a mapping like this:
mapperly generates:
It maps the
Id
property without errors, but just creates a newRandomClass
instance, and doesn't do anything with the source value. I understand it cannot do anything with it, but it also doesn't throw an error. I would like to have some way to avoid this seeming to be a valid mapping. The conversions documentation states you can avoid some automatic conversions, but I don't seem to be able to disable theNew instance
conversion. Also, the theNew instance
conversion also seems to be the one that is responsible for checking for a factory for the class. I would NOT want to disable this.Beta Was this translation helpful? Give feedback.
All reactions