Create a URL field for the (API) response #800
Replies: 1 comment 3 replies
-
Hey, would it be possible for you to share an example of your issue? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to set an image URL to a field (ImageUrl) in the response.
The only way to do this is to add it after the mapping to the response object (Before / After Map). But then the compiler complaints that the response class doesn't have a an accessible constructor with mappable arguments. But when I add a property called ImageUrl in the DTO, the compiler error is cleared. Why won't it work without the DTO property? And it doesn't matter if I add a MapperIgnoreTarget attribute on the ImageUrl field.
Is there another (better?) way to set the image URL in the response? I would like to have it in the mapper.
Beta Was this translation helpful? Give feedback.
All reactions