{"action":"closed","number":14,"pull_request":{"url":"https://api.github.com/repos/julianpeeters/avrohugger/pulls/14","id":41269337,"html_url":"https://github.com/julianpeeters/avrohugger/pull/14","diff_url":"https://github.com/julianpeeters/avrohugger/pull/14.diff","patch_url":"https://github.com/julianpeeters/avrohugger/pull/14.patch","issue_url":"https://api.github.com/repos/julianpeeters/avrohugger/issues/14","number":14,"state":"closed","locked":false,"title":"Solution for Issue #13. Duplicated classes generated when importing schemas from different namespaces","user":{"login":"galarragas","id":4570353,"avatar_url":"https://avatars.githubusercontent.com/u/4570353?v=3","gravatar_id":"","url":"https://api.github.com/users/galarragas","html_url":"https://github.com/galarragas","followers_url":"https://api.github.com/users/galarragas/followers","following_url":"https://api.github.com/users/galarragas/following{/other_user}","gists_url":"https://api.github.com/users/galarragas/gists{/gist_id}","starred_url":"https://api.github.com/users/galarragas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galarragas/subscriptions","organizations_url":"https://api.github.com/users/galarragas/orgs","repos_url":"https://api.github.com/users/galarragas/repos","events_url":"https://api.github.com/users/galarragas/events{/privacy}","received_events_url":"https://api.github.com/users/galarragas/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nI'm using the sbt-avrohugger plugin to generate scala code in one of my project and I want to use schemas from different namespaces sharing types. The plugin works fine but in this special case it is generating duplicated classes. It also is causing the classes to be used in the importing type to be the one in the same namespace in the code but not when the type is deserialised.\r\n\r\nI'm attaching a proposed solution for the problem ","created_at":"2015-07-30T18:59:11Z","updated_at":"2015-08-10T10:48:47Z","closed_at":"2015-08-10T10:48:47Z","merged_at":"2015-08-10T10:48:47Z","merge_commit_sha":"a6278e368d52b0abdc102977d850628261ddf41e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/julianpeeters/avrohugger/pulls/14/commits","review_comments_url":"https://api.github.com/repos/julianpeeters/avrohugger/pulls/14/comments","review_comment_url":"https://api.github.com/repos/julianpeeters/avrohugger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/julianpeeters/avrohugger/issues/14/comments","statuses_url":"https://api.github.com/repos/julianpeeters/avrohugger/statuses/de90d553fc254a0701fca40113c7039a8a05ba1b","head":{"label":"galarragas:master","ref":"master","sha":"de90d553fc254a0701fca40113c7039a8a05ba1b","user":{"login":"galarragas","id":4570353,"avatar_url":"https://avatars.githubusercontent.com/u/4570353?v=3","gravatar_id":"","url":"https://api.github.com/users/galarragas","html_url":"https://github.com/galarragas","followers_url":"https://api.github.com/users/galarragas/followers","following_url":"https://api.github.com/users/galarragas/following{/other_user}","gists_url":"https://api.github.com/users/galarragas/gists{/gist_id}","starred_url":"https://api.github.com/users/galarragas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galarragas/subscriptions","organizations_url":"https://api.github.com/users/galarragas/orgs","repos_url":"https://api.github.com/users/galarragas/repos","events_url":"https://api.github.com/users/galarragas/events{/privacy}","received_events_url":"https://api.github.com/users/galarragas/received_events","type":"User","site_admin":false},"repo":{"id":39829318,"name":"avrohugger","full_name":"galarragas/avrohugger","owner":{"login":"galarragas","id":4570353,"avatar_url":"https://avatars.githubusercontent.com/u/4570353?v=3","gravatar_id":"","url":"https://api.github.com/users/galarragas","html_url":"https://github.com/galarragas","followers_url":"https://api.github.com/users/galarragas/followers","following_url":"https://api.github.com/users/galarragas/following{/other_user}","gists_url":"https://api.github.com/users/galarragas/gists{/gist_id}","starred_url":"https://api.github.com/users/galarragas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galarragas/subscriptions","organizations_url":"https://api.github.com/users/galarragas/orgs","repos_url":"https://api.github.com/users/galarragas/repos","events_url":"https://api.github.com/users/galarragas/events{/privacy}","received_events_url":"https://api.github.com/users/galarragas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/galarragas/avrohugger","description":"Generate Scala case class definitions from Avro schemas","fork":true,"url":"https://api.github.com/repos/galarragas/avrohugger","forks_url":"https://api.github.com/repos/galarragas/avrohugger/forks","keys_url":"https://api.github.com/repos/galarragas/avrohugger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/galarragas/avrohugger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/galarragas/avrohugger/teams","hooks_url":"https://api.github.com/repos/galarragas/avrohugger/hooks","issue_events_url":"https://api.github.com/repos/galarragas/avrohugger/issues/events{/number}","events_url":"https://api.github.com/repos/galarragas/avrohugger/events","assignees_url":"https://api.github.com/repos/galarragas/avrohugger/assignees{/user}","branches_url":"https://api.github.com/repos/galarragas/avrohugger/branches{/branch}","tags_url":"https://api.github.com/repos/galarragas/avrohugger/tags","blobs_url":"https://api.github.com/repos/galarragas/avrohugger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/galarragas/avrohugger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/galarragas/avrohugger/git/refs{/sha}","trees_url":"https://api.github.com/repos/galarragas/avrohugger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/galarragas/avrohugger/statuses/{sha}","languages_url":"https://api.github.com/repos/galarragas/avrohugger/languages","stargazers_url":"https://api.github.com/repos/galarragas/avrohugger/stargazers","contributors_url":"https://api.github.com/repos/galarragas/avrohugger/contributors","subscribers_url":"https://api.github.com/repos/galarragas/avrohugger/subscribers","subscription_url":"https://api.github.com/repos/galarragas/avrohugger/subscription","commits_url":"https://api.github.com/repos/galarragas/avrohugger/commits{/sha}","git_commits_url":"https://api.github.com/repos/galarragas/avrohugger/git/commits{/sha}","comments_url":"https://api.github.com/repos/galarragas/avrohugger/comments{/number}","issue_comment_url":"https://api.github.com/repos/galarragas/avrohugger/issues/comments{/number}","contents_url":"https://api.github.com/repos/galarragas/avrohugger/contents/{+path}","compare_url":"https://api.github.com/repos/galarragas/avrohugger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/galarragas/avrohugger/merges","archive_url":"https://api.github.com/repos/galarragas/avrohugger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/galarragas/avrohugger/downloads","issues_url":"https://api.github.com/repos/galarragas/avrohugger/issues{/number}","pulls_url":"https://api.github.com/repos/galarragas/avrohugger/pulls{/number}","milestones_url":"https://api.github.com/repos/galarragas/avrohugger/milestones{/number}","notifications_url":"https://api.github.com/repos/galarragas/avrohugger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/galarragas/avrohugger/labels{/name}","releases_url":"https://api.github.com/repos/galarragas/avrohugger/releases{/id}","created_at":"2015-07-28T11:06:08Z","updated_at":"2015-07-28T11:06:09Z","pushed_at":"2015-07-30T18:23:40Z","git_url":"git://github.com/galarragas/avrohugger.git","ssh_url":"git@github.com:galarragas/avrohugger.git","clone_url":"https://github.com/galarragas/avrohugger.git","svn_url":"https://github.com/galarragas/avrohugger","homepage":null,"size":224,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"julianpeeters:master","ref":"master","sha":"6311774cbf33c8541fd44ca559e98143c9607070","user":{"login":"julianpeeters","id":589614,"avatar_url":"https://avatars.githubusercontent.com/u/589614?v=3","gravatar_id":"","url":"https://api.github.com/users/julianpeeters","html_url":"https://github.com/julianpeeters","followers_url":"https://api.github.com/users/julianpeeters/followers","following_url":"https://api.github.com/users/julianpeeters/following{/other_user}","gists_url":"https://api.github.com/users/julianpeeters/gists{/gist_id}","starred_url":"https://api.github.com/users/julianpeeters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianpeeters/subscriptions","organizations_url":"https://api.github.com/users/julianpeeters/orgs","repos_url":"https://api.github.com/users/julianpeeters/repos","events_url":"https://api.github.com/users/julianpeeters/events{/privacy}","received_events_url":"https://api.github.com/users/julianpeeters/received_events","type":"User","site_admin":false},"repo":{"id":28902106,"name":"avrohugger","full_name":"julianpeeters/avrohugger","owner":{"login":"julianpeeters","id":589614,"avatar_url":"https://avatars.githubusercontent.com/u/589614?v=3","gravatar_id":"","url":"https://api.github.com/users/julianpeeters","html_url":"https://github.com/julianpeeters","followers_url":"https://api.github.com/users/julianpeeters/followers","following_url":"https://api.github.com/users/julianpeeters/following{/other_user}","gists_url":"https://api.github.com/users/julianpeeters/gists{/gist_id}","starred_url":"https://api.github.com/users/julianpeeters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianpeeters/subscriptions","organizations_url":"https://api.github.com/users/julianpeeters/orgs","repos_url":"https://api.github.com/users/julianpeeters/repos","events_url":"https://api.github.com/users/julianpeeters/events{/privacy}","received_events_url":"https://api.github.com/users/julianpeeters/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/julianpeeters/avrohugger","description":"Generate Scala case class definitions from Avro schemas","fork":false,"url":"https://api.github.com/repos/julianpeeters/avrohugger","forks_url":"https://api.github.com/repos/julianpeeters/avrohugger/forks","keys_url":"https://api.github.com/repos/julianpeeters/avrohugger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/julianpeeters/avrohugger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/julianpeeters/avrohugger/teams","hooks_url":"https://api.github.com/repos/julianpeeters/avrohugger/hooks","issue_events_url":"https://api.github.com/repos/julianpeeters/avrohugger/issues/events{/number}","events_url":"https://api.github.com/repos/julianpeeters/avrohugger/events","assignees_url":"https://api.github.com/repos/julianpeeters/avrohugger/assignees{/user}","branches_url":"https://api.github.com/repos/julianpeeters/avrohugger/branches{/branch}","tags_url":"https://api.github.com/repos/julianpeeters/avrohugger/tags","blobs_url":"https://api.github.com/repos/julianpeeters/avrohugger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/julianpeeters/avrohugger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/julianpeeters/avrohugger/git/refs{/sha}","trees_url":"https://api.github.com/repos/julianpeeters/avrohugger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/julianpeeters/avrohugger/statuses/{sha}","languages_url":"https://api.github.com/repos/julianpeeters/avrohugger/languages","stargazers_url":"https://api.github.com/repos/julianpeeters/avrohugger/stargazers","contributors_url":"https://api.github.com/repos/julianpeeters/avrohugger/contributors","subscribers_url":"https://api.github.com/repos/julianpeeters/avrohugger/subscribers","subscription_url":"https://api.github.com/repos/julianpeeters/avrohugger/subscription","commits_url":"https://api.github.com/repos/julianpeeters/avrohugger/commits{/sha}","git_commits_url":"https://api.github.com/repos/julianpeeters/avrohugger/git/commits{/sha}","comments_url":"https://api.github.com/repos/julianpeeters/avrohugger/comments{/number}","issue_comment_url":"https://api.github.com/repos/julianpeeters/avrohugger/issues/comments{/number}","contents_url":"https://api.github.com/repos/julianpeeters/avrohugger/contents/{+path}","compare_url":"https://api.github.com/repos/julianpeeters/avrohugger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/julianpeeters/avrohugger/merges","archive_url":"https://api.github.com/repos/julianpeeters/avrohugger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/julianpeeters/avrohugger/downloads","issues_url":"https://api.github.com/repos/julianpeeters/avrohugger/issues{/number}","pulls_url":"https://api.github.com/repos/julianpeeters/avrohugger/pulls{/number}","milestones_url":"https://api.github.com/repos/julianpeeters/avrohugger/milestones{/number}","notifications_url":"https://api.github.com/repos/julianpeeters/avrohugger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/julianpeeters/avrohugger/labels{/name}","releases_url":"https://api.github.com/repos/julianpeeters/avrohugger/releases{/id}","created_at":"2015-01-07T06:39:58Z","updated_at":"2015-07-30T18:52:58Z","pushed_at":"2015-08-10T10:48:47Z","git_url":"git://github.com/julianpeeters/avrohugger.git","ssh_url":"git@github.com:julianpeeters/avrohugger.git","clone_url":"https://github.com/julianpeeters/avrohugger.git","svn_url":"https://github.com/julianpeeters/avrohugger","homepage":null,"size":379,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/julianpeeters/avrohugger/pulls/14"},"html":{"href":"https://github.com/julianpeeters/avrohugger/pull/14"},"issue":{"href":"https://api.github.com/repos/julianpeeters/avrohugger/issues/14"},"comments":{"href":"https://api.github.com/repos/julianpeeters/avrohugger/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/julianpeeters/avrohugger/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/julianpeeters/avrohugger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/julianpeeters/avrohugger/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/julianpeeters/avrohugger/statuses/de90d553fc254a0701fca40113c7039a8a05ba1b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"julianpeeters","id":589614,"avatar_url":"https://avatars.githubusercontent.com/u/589614?v=3","gravatar_id":"","url":"https://api.github.com/users/julianpeeters","html_url":"https://github.com/julianpeeters","followers_url":"https://api.github.com/users/julianpeeters/followers","following_url":"https://api.github.com/users/julianpeeters/following{/other_user}","gists_url":"https://api.github.com/users/julianpeeters/gists{/gist_id}","starred_url":"https://api.github.com/users/julianpeeters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianpeeters/subscriptions","organizations_url":"https://api.github.com/users/julianpeeters/orgs","repos_url":"https://api.github.com/users/julianpeeters/repos","events_url":"https://api.github.com/users/julianpeeters/events{/privacy}","received_events_url":"https://api.github.com/users/julianpeeters/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":3,"additions":376,"deletions":32,"changed_files":11}}