{"action":"created","comment":{"url":"https://api.github.com/repos/strongloop/loopback-swagger/pulls/comments/58029168","id":58029168,"diff_hunk":"@@ -122,8 +126,7 @@ var routeHelper = module.exports = {\n       if (schemaBuilder.isPrimitiveType(itemIdlType)) {\n         schema.properties[propName] = schemaBuilder.buildFromLoopBackType(ret, typeRegistry);\n       } else {\n-        console.warn('Swagger: skipping unknown type %j found in route %j', itemIdlType, route);\n-        // Temporarily use `object` as the (inner item) type\n+        console.warn('Swagger: temporarily use `object` instead of unknown type %j found in route %j', itemIdlType, route);","path":"lib/specgen/route-helper.js","position":19,"original_position":19,"commit_id":"8fe4de8b93ae2f204bc38281134381e9a3fef23a","original_commit_id":"8fe4de8b93ae2f204bc38281134381e9a3fef23a","user":{"login":"hideya","id":321713,"avatar_url":"https://avatars.githubusercontent.com/u/321713?v=3","gravatar_id":"","url":"https://api.github.com/users/hideya","html_url":"https://github.com/hideya","followers_url":"https://api.github.com/users/hideya/followers","following_url":"https://api.github.com/users/hideya/following{/other_user}","gists_url":"https://api.github.com/users/hideya/gists{/gist_id}","starred_url":"https://api.github.com/users/hideya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideya/subscriptions","organizations_url":"https://api.github.com/users/hideya/orgs","repos_url":"https://api.github.com/users/hideya/repos","events_url":"https://api.github.com/users/hideya/events{/privacy}","received_events_url":"https://api.github.com/users/hideya/received_events","type":"User","site_admin":false},"body":"Fixed! Thanks for pointing it out.  ","created_at":"2016-03-31T10:03:35Z","updated_at":"2016-03-31T10:03:35Z","html_url":"https://github.com/strongloop/loopback-swagger/pull/28#discussion_r58029168","pull_request_url":"https://api.github.com/repos/strongloop/loopback-swagger/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/strongloop/loopback-swagger/pulls/comments/58029168"},"html":{"href":"https://github.com/strongloop/loopback-swagger/pull/28#discussion_r58029168"},"pull_request":{"href":"https://api.github.com/repos/strongloop/loopback-swagger/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-swagger/pulls/28","id":60808596,"html_url":"https://github.com/strongloop/loopback-swagger/pull/28","diff_url":"https://github.com/strongloop/loopback-swagger/pull/28.diff","patch_url":"https://github.com/strongloop/loopback-swagger/pull/28.patch","issue_url":"https://api.github.com/repos/strongloop/loopback-swagger/issues/28","number":28,"state":"open","locked":false,"title":"Improve schema generation for return object","user":{"login":"hideya","id":321713,"avatar_url":"https://avatars.githubusercontent.com/u/321713?v=3","gravatar_id":"","url":"https://api.github.com/users/hideya","html_url":"https://github.com/hideya","followers_url":"https://api.github.com/users/hideya/followers","following_url":"https://api.github.com/users/hideya/following{/other_user}","gists_url":"https://api.github.com/users/hideya/gists{/gist_id}","starred_url":"https://api.github.com/users/hideya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideya/subscriptions","organizations_url":"https://api.github.com/users/hideya/orgs","repos_url":"https://api.github.com/users/hideya/repos","events_url":"https://api.github.com/users/hideya/events{/privacy}","received_events_url":"https://api.github.com/users/hideya/received_events","type":"User","site_admin":false},"body":"Fix https://github.com/strongloop/loopback-swagger/issues/27\r\n\r\nUpdated loopback-swagger has been tested by generating Swagger Spec of [this test API server](https://docs.strongloop.com/display/public/LB/Create+a+simple+API), feeding it to [swagger-codegen](https://github.com/swagger-api/swagger-codegen) and writing a simple client in Swift using the swagger-codegen-generated SDK.  I tested invocation of `PersistedModel.count`, which demonstrated the issue, in the simple test client and made sure this fix works.\r\n\r\n@bajtos would you please review the changes?","created_at":"2016-02-26T08:33:48Z","updated_at":"2016-03-31T10:03:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79b15c8661ce75379c3a9990f349d08bf5202900","assignee":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/strongloop/loopback-swagger/pulls/28/commits","review_comments_url":"https://api.github.com/repos/strongloop/loopback-swagger/pulls/28/comments","review_comment_url":"https://api.github.com/repos/strongloop/loopback-swagger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongloop/loopback-swagger/issues/28/comments","statuses_url":"https://api.github.com/repos/strongloop/loopback-swagger/statuses/8fe4de8b93ae2f204bc38281134381e9a3fef23a","head":{"label":"hideya:fix/issue-27","ref":"fix/issue-27","sha":"8fe4de8b93ae2f204bc38281134381e9a3fef23a","user":{"login":"hideya","id":321713,"avatar_url":"https://avatars.githubusercontent.com/u/321713?v=3","gravatar_id":"","url":"https://api.github.com/users/hideya","html_url":"https://github.com/hideya","followers_url":"https://api.github.com/users/hideya/followers","following_url":"https://api.github.com/users/hideya/following{/other_user}","gists_url":"https://api.github.com/users/hideya/gists{/gist_id}","starred_url":"https://api.github.com/users/hideya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideya/subscriptions","organizations_url":"https://api.github.com/users/hideya/orgs","repos_url":"https://api.github.com/users/hideya/repos","events_url":"https://api.github.com/users/hideya/events{/privacy}","received_events_url":"https://api.github.com/users/hideya/received_events","type":"User","site_admin":false},"repo":{"id":52073870,"name":"loopback-swagger","full_name":"hideya/loopback-swagger","owner":{"login":"hideya","id":321713,"avatar_url":"https://avatars.githubusercontent.com/u/321713?v=3","gravatar_id":"","url":"https://api.github.com/users/hideya","html_url":"https://github.com/hideya","followers_url":"https://api.github.com/users/hideya/followers","following_url":"https://api.github.com/users/hideya/following{/other_user}","gists_url":"https://api.github.com/users/hideya/gists{/gist_id}","starred_url":"https://api.github.com/users/hideya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideya/subscriptions","organizations_url":"https://api.github.com/users/hideya/orgs","repos_url":"https://api.github.com/users/hideya/repos","events_url":"https://api.github.com/users/hideya/events{/privacy}","received_events_url":"https://api.github.com/users/hideya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hideya/loopback-swagger","description":"LoopBack Swagger Spec Integration","fork":true,"url":"https://api.github.com/repos/hideya/loopback-swagger","forks_url":"https://api.github.com/repos/hideya/loopback-swagger/forks","keys_url":"https://api.github.com/repos/hideya/loopback-swagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hideya/loopback-swagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hideya/loopback-swagger/teams","hooks_url":"https://api.github.com/repos/hideya/loopback-swagger/hooks","issue_events_url":"https://api.github.com/repos/hideya/loopback-swagger/issues/events{/number}","events_url":"https://api.github.com/repos/hideya/loopback-swagger/events","assignees_url":"https://api.github.com/repos/hideya/loopback-swagger/assignees{/user}","branches_url":"https://api.github.com/repos/hideya/loopback-swagger/branches{/branch}","tags_url":"https://api.github.com/repos/hideya/loopback-swagger/tags","blobs_url":"https://api.github.com/repos/hideya/loopback-swagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hideya/loopback-swagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hideya/loopback-swagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/hideya/loopback-swagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hideya/loopback-swagger/statuses/{sha}","languages_url":"https://api.github.com/repos/hideya/loopback-swagger/languages","stargazers_url":"https://api.github.com/repos/hideya/loopback-swagger/stargazers","contributors_url":"https://api.github.com/repos/hideya/loopback-swagger/contributors","subscribers_url":"https://api.github.com/repos/hideya/loopback-swagger/subscribers","subscription_url":"https://api.github.com/repos/hideya/loopback-swagger/subscription","commits_url":"https://api.github.com/repos/hideya/loopback-swagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/hideya/loopback-swagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/hideya/loopback-swagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/hideya/loopback-swagger/issues/comments{/number}","contents_url":"https://api.github.com/repos/hideya/loopback-swagger/contents/{+path}","compare_url":"https://api.github.com/repos/hideya/loopback-swagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hideya/loopback-swagger/merges","archive_url":"https://api.github.com/repos/hideya/loopback-swagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hideya/loopback-swagger/downloads","issues_url":"https://api.github.com/repos/hideya/loopback-swagger/issues{/number}","pulls_url":"https://api.github.com/repos/hideya/loopback-swagger/pulls{/number}","milestones_url":"https://api.github.com/repos/hideya/loopback-swagger/milestones{/number}","notifications_url":"https://api.github.com/repos/hideya/loopback-swagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hideya/loopback-swagger/labels{/name}","releases_url":"https://api.github.com/repos/hideya/loopback-swagger/releases{/id}","deployments_url":"https://api.github.com/repos/hideya/loopback-swagger/deployments","created_at":"2016-02-19T08:41:08Z","updated_at":"2016-02-19T08:41:09Z","pushed_at":"2016-03-27T06:40:14Z","git_url":"git://github.com/hideya/loopback-swagger.git","ssh_url":"git@github.com:hideya/loopback-swagger.git","clone_url":"https://github.com/hideya/loopback-swagger.git","svn_url":"https://github.com/hideya/loopback-swagger","homepage":null,"size":105,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"strongloop:master","ref":"master","sha":"faa8d4f227a10042cc6b579298c0985ecadeea8f","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":23438198,"name":"loopback-swagger","full_name":"strongloop/loopback-swagger","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/loopback-swagger","description":"LoopBack Swagger Spec Integration","fork":false,"url":"https://api.github.com/repos/strongloop/loopback-swagger","forks_url":"https://api.github.com/repos/strongloop/loopback-swagger/forks","keys_url":"https://api.github.com/repos/strongloop/loopback-swagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/loopback-swagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/loopback-swagger/teams","hooks_url":"https://api.github.com/repos/strongloop/loopback-swagger/hooks","issue_events_url":"https://api.github.com/repos/strongloop/loopback-swagger/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/loopback-swagger/events","assignees_url":"https://api.github.com/repos/strongloop/loopback-swagger/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/loopback-swagger/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/loopback-swagger/tags","blobs_url":"https://api.github.com/repos/strongloop/loopback-swagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/loopback-swagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/loopback-swagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/loopback-swagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/loopback-swagger/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/loopback-swagger/languages","stargazers_url":"https://api.github.com/repos/strongloop/loopback-swagger/stargazers","contributors_url":"https://api.github.com/repos/strongloop/loopback-swagger/contributors","subscribers_url":"https://api.github.com/repos/strongloop/loopback-swagger/subscribers","subscription_url":"https://api.github.com/repos/strongloop/loopback-swagger/subscription","commits_url":"https://api.github.com/repos/strongloop/loopback-swagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/loopback-swagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/loopback-swagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/loopback-swagger/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/loopback-swagger/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/loopback-swagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/loopback-swagger/merges","archive_url":"https://api.github.com/repos/strongloop/loopback-swagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/loopback-swagger/downloads","issues_url":"https://api.github.com/repos/strongloop/loopback-swagger/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/loopback-swagger/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/loopback-swagger/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/loopback-swagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/loopback-swagger/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/loopback-swagger/releases{/id}","deployments_url":"https://api.github.com/repos/strongloop/loopback-swagger/deployments","created_at":"2014-08-28T18:16:15Z","updated_at":"2016-03-02T17:06:04Z","pushed_at":"2016-03-27T06:40:15Z","git_url":"git://github.com/strongloop/loopback-swagger.git","ssh_url":"git@github.com:strongloop/loopback-swagger.git","clone_url":"https://github.com/strongloop/loopback-swagger.git","svn_url":"https://github.com/strongloop/loopback-swagger","homepage":null,"size":110,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":4,"forks":10,"open_issues":4,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongloop/loopback-swagger/pulls/28"},"html":{"href":"https://github.com/strongloop/loopback-swagger/pull/28"},"issue":{"href":"https://api.github.com/repos/strongloop/loopback-swagger/issues/28"},"comments":{"href":"https://api.github.com/repos/strongloop/loopback-swagger/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/strongloop/loopback-swagger/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/strongloop/loopback-swagger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongloop/loopback-swagger/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/strongloop/loopback-swagger/statuses/8fe4de8b93ae2f204bc38281134381e9a3fef23a"}}}}