{"action":"opened","issue":{"url":"https://api.github.com/repos/fluentsprings/ExpressMapper/issues/103","repository_url":"https://api.github.com/repos/fluentsprings/ExpressMapper","labels_url":"https://api.github.com/repos/fluentsprings/ExpressMapper/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/fluentsprings/ExpressMapper/issues/103/comments","events_url":"https://api.github.com/repos/fluentsprings/ExpressMapper/issues/103/events","html_url":"https://github.com/fluentsprings/ExpressMapper/issues/103","id":161367363,"number":103,"title":"Mapper.RegisterCustom is not used when source value is default<T>","user":{"login":"high1","id":783303,"avatar_url":"https://avatars.githubusercontent.com/u/783303?v=3","gravatar_id":"","url":"https://api.github.com/users/high1","html_url":"https://github.com/high1","followers_url":"https://api.github.com/users/high1/followers","following_url":"https://api.github.com/users/high1/following{/other_user}","gists_url":"https://api.github.com/users/high1/gists{/gist_id}","starred_url":"https://api.github.com/users/high1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/high1/subscriptions","organizations_url":"https://api.github.com/users/high1/orgs","repos_url":"https://api.github.com/users/high1/repos","events_url":"https://api.github.com/users/high1/events{/privacy}","received_events_url":"https://api.github.com/users/high1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-21T07:33:05Z","updated_at":"2016-06-21T07:33:05Z","closed_at":null,"body":"I wrote about this here:\r\nhttps://github.com/fluentsprings/ExpressMapper/issues/96, and I'm sure that this is an issue in Mapper.RegisterCustom. Basically, registered custom mapping is not used when source value is default<T> - Mapper.RegisterCustom<int, string>(src => src.ToString(\"#0.0\"); will not work if src is 0, but all other values are fine."}}
{"actor":{"display_login":"high1"}}