{"action":"created","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1669","repository_url":"https://api.github.com/repos/AutoMapper/AutoMapper","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1669/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1669/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1669/events","html_url":"https://github.com/AutoMapper/AutoMapper/pull/1669","id":175031325,"number":1669,"title":"derived maps fix","user":{"login":"RobinHerbots","id":318447,"avatar_url":"https://avatars.githubusercontent.com/u/318447?v=3","gravatar_id":"","url":"https://api.github.com/users/RobinHerbots","html_url":"https://github.com/RobinHerbots","followers_url":"https://api.github.com/users/RobinHerbots/followers","following_url":"https://api.github.com/users/RobinHerbots/following{/other_user}","gists_url":"https://api.github.com/users/RobinHerbots/gists{/gist_id}","starred_url":"https://api.github.com/users/RobinHerbots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobinHerbots/subscriptions","organizations_url":"https://api.github.com/users/RobinHerbots/orgs","repos_url":"https://api.github.com/users/RobinHerbots/repos","events_url":"https://api.github.com/users/RobinHerbots/events{/privacy}","received_events_url":"https://api.github.com/users/RobinHerbots/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-05T09:28:56Z","updated_at":"2016-09-05T11:57:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/pulls/1669","html_url":"https://github.com/AutoMapper/AutoMapper/pull/1669","diff_url":"https://github.com/AutoMapper/AutoMapper/pull/1669.diff","patch_url":"https://github.com/AutoMapper/AutoMapper/pull/1669.patch"},"body":"Also see issue #1664\r\n\r\nIn the MapperConfiguration.cs, we register the different typemaps.  For nullables there is a derived typemap created.  But it also overwrites an existing typemapping when present. \r\n\r\nThis shouldn't happen as when the mapping already exist it is probably the intention of the dev to have it there.  So, I added a check to create the derived map only if it doesn't exist.\r\n\r\nRobin\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/244729823","html_url":"https://github.com/AutoMapper/AutoMapper/pull/1669#issuecomment-244729823","issue_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1669","id":244729823,"user":{"login":"RobinHerbots","id":318447,"avatar_url":"https://avatars.githubusercontent.com/u/318447?v=3","gravatar_id":"","url":"https://api.github.com/users/RobinHerbots","html_url":"https://github.com/RobinHerbots","followers_url":"https://api.github.com/users/RobinHerbots/followers","following_url":"https://api.github.com/users/RobinHerbots/following{/other_user}","gists_url":"https://api.github.com/users/RobinHerbots/gists{/gist_id}","starred_url":"https://api.github.com/users/RobinHerbots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobinHerbots/subscriptions","organizations_url":"https://api.github.com/users/RobinHerbots/orgs","repos_url":"https://api.github.com/users/RobinHerbots/repos","events_url":"https://api.github.com/users/RobinHerbots/events{/privacy}","received_events_url":"https://api.github.com/users/RobinHerbots/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T11:57:32Z","updated_at":"2016-09-05T11:57:32Z","body":"@lbargaoanu , \r\n\r\nWhen you look at the code example in the issue.  You can see that it is intentional.  I defined a mapping for bool already.  I don't want the mapping be overwritten by a nullable derived typemap.  This is exactly what happens in the current version and what is prevented by the small patch.  Althought still not the perfect scenario but at least a better as it is now."}}
{"actor":{"display_login":"RobinHerbots"}}