Custom value resolver doesn't work when `AddConditionalObjectMapper()` is used
See original GitHub issueA minimal repro of this issue is here.
When using a simple custom value resolver that just maps an inner property, and AddConditionalObjectMapper()
has been configured, the returned mapped value doesn’t reflect what the value resolver returned. It’s still being called though, but it’s like the returned value isn’t being used.
If I comment out the call to AddConditionalObjectMapper()
everything works as expected (please check the repro).
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
AutoMapper custom resolver does not work
So I used custom resolver with below code. IEnumerable<ActiveParticipant> activeParticipants = SomeMethod(); Mapper.CreateMap<ActiveParticipant, ...
Read more >Custom Value Resolvers
We have several options in telling AutoMapper a custom value resolver to use, including: MapFrom<TValueResolver>; MapFrom(typeof(CustomValueResolver)); MapFrom( ...
Read more >Jackson Exceptions - Problems and Solutions
This exception is thrown if Jackson can't access the constructor. In the following example, class User doesn't have a default constructor:
Read more >Jackson JSON Java Parser API Example Tutorial
ObjectMapper is the most important class in Jackson API that provides readValue() and writeValue() methods to transform JSON to Java Object and ...
Read more >Jackson - ObjectMapper Class
Customized TypeResolverBuilder that provides type resolver builders used with so-called "default typing" (see enableDefaultTyping() for details).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just never misspell anything 😃
On Sat, Jul 1, 2017 at 12:52 PM Mohammad Rahhal notifications@github.com wrote:
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.