{"action":"created","issue":{"url":"https://api.github.com/repos/aryaxt/OCMapper/issues/20","labels_url":"https://api.github.com/repos/aryaxt/OCMapper/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/aryaxt/OCMapper/issues/20/comments","events_url":"https://api.github.com/repos/aryaxt/OCMapper/issues/20/events","html_url":"https://github.com/aryaxt/OCMapper/issues/20","id":60839385,"number":20,"title":"MissingMappingProvider is Swift usage","user":{"login":"victorjussiani","id":2778356,"avatar_url":"https://avatars.githubusercontent.com/u/2778356?v=3","gravatar_id":"","url":"https://api.github.com/users/victorjussiani","html_url":"https://github.com/victorjussiani","followers_url":"https://api.github.com/users/victorjussiani/followers","following_url":"https://api.github.com/users/victorjussiani/following{/other_user}","gists_url":"https://api.github.com/users/victorjussiani/gists{/gist_id}","starred_url":"https://api.github.com/users/victorjussiani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorjussiani/subscriptions","organizations_url":"https://api.github.com/users/victorjussiani/orgs","repos_url":"https://api.github.com/users/victorjussiani/repos","events_url":"https://api.github.com/users/victorjussiani/events{/privacy}","received_events_url":"https://api.github.com/users/victorjussiani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-12T15:42:40Z","updated_at":"2015-03-12T16:27:59Z","closed_at":null,"body":"Hello,\r\n\r\ncould you help me, when I try to run the following command\r\n``` \r\nObjectMapper.sharedInstance().objectFromSource(self.data, toInstanceOfClass: Message.self) as? Message \r\n```\r\nit returns the following error:\r\n```\r\n2015-03-12 11:31:16.385 websocket[41545:3347379] *** Terminating app due to uncaught exception 'MissingMappingProvider', reason: 'Mapping provider is not set'\r\n```\r\nI'm forgetting to do something?"},"comment":{"url":"https://api.github.com/repos/aryaxt/OCMapper/issues/comments/78517422","html_url":"https://github.com/aryaxt/OCMapper/issues/20#issuecomment-78517422","issue_url":"https://api.github.com/repos/aryaxt/OCMapper/issues/20","id":78517422,"user":{"login":"aryaxt","id":3460069,"avatar_url":"https://avatars.githubusercontent.com/u/3460069?v=3","gravatar_id":"","url":"https://api.github.com/users/aryaxt","html_url":"https://github.com/aryaxt","followers_url":"https://api.github.com/users/aryaxt/followers","following_url":"https://api.github.com/users/aryaxt/following{/other_user}","gists_url":"https://api.github.com/users/aryaxt/gists{/gist_id}","starred_url":"https://api.github.com/users/aryaxt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aryaxt/subscriptions","organizations_url":"https://api.github.com/users/aryaxt/orgs","repos_url":"https://api.github.com/users/aryaxt/repos","events_url":"https://api.github.com/users/aryaxt/events{/privacy}","received_events_url":"https://api.github.com/users/aryaxt/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T16:27:59Z","updated_at":"2015-03-12T16:27:59Z","body":"I'll get rid of that exception as mappingProvider is not always necessary\r\nHere is a fix, let me know if it resolves the issue.\r\n\r\n```\r\nObjectMapper.sharedInstance().mappingProvider = InCodeMappingProvider()\r\n```"}}