Replies: 2 comments 3 replies
-
On further look, this might not be a bug but my misunderstanding that you need to create a mapper for string to boolean. Will close off for now.. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok, so even with mapping configuration, valid is showing false even though the Dynamic has a value of True for that property. I've tried the above with this mapping configuration and get the same result: var configuration = new MapperConfiguration(cfg => {
cfg.CreateMap<string, bool>().ConvertUsing(str => str.ToUpper() == "TRUE");
});
var mapper = configuration.CreateMapper(); |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Source/destination types
Mapping configuration
Version: 10.1.1
Expected behavior
Foo.valid = true (as per incoming DynamicObject)
Actual behavior
Foo.valid = false
All other properties, e.g the name (string) are correctly mapped.
Beta Was this translation helpful? Give feedback.
All reactions