{"action":"created","comment":{"url":"https://api.github.com/repos/strongloop/generator-loopback/pulls/comments/48193873","id":48193873,"diff_hunk":"@@ -0,0 +1,41 @@\n+'use strict';\n+var fs = require('fs');\n+var path = require('path');\n+var yeoman = require('yeoman-generator');\n+var helpers = require('../lib/helpers');\n+var apigenerator = require('loopback-api-definition');","path":"export-api-def/index.js","position":6,"original_position":6,"commit_id":"cea815c4552b6a58b15d5a7ca40931d3d56b35ca","original_commit_id":"cea815c4552b6a58b15d5a7ca40931d3d56b35ca","user":{"login":"superkhau","id":1617364,"avatar_url":"https://avatars.githubusercontent.com/u/1617364?v=3","gravatar_id":"","url":"https://api.github.com/users/superkhau","html_url":"https://github.com/superkhau","followers_url":"https://api.github.com/users/superkhau/followers","following_url":"https://api.github.com/users/superkhau/following{/other_user}","gists_url":"https://api.github.com/users/superkhau/gists{/gist_id}","starred_url":"https://api.github.com/users/superkhau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superkhau/subscriptions","organizations_url":"https://api.github.com/users/superkhau/orgs","repos_url":"https://api.github.com/users/superkhau/repos","events_url":"https://api.github.com/users/superkhau/events{/privacy}","received_events_url":"https://api.github.com/users/superkhau/received_events","type":"User","site_admin":false},"body":"apiGenerator?","created_at":"2015-12-21T21:24:49Z","updated_at":"2015-12-21T21:24:49Z","html_url":"https://github.com/strongloop/generator-loopback/pull/121#discussion_r48193873","pull_request_url":"https://api.github.com/repos/strongloop/generator-loopback/pulls/121","_links":{"self":{"href":"https://api.github.com/repos/strongloop/generator-loopback/pulls/comments/48193873"},"html":{"href":"https://github.com/strongloop/generator-loopback/pull/121#discussion_r48193873"},"pull_request":{"href":"https://api.github.com/repos/strongloop/generator-loopback/pulls/121"}}},"pull_request":{"url":"https://api.github.com/repos/strongloop/generator-loopback/pulls/121","id":51583706,"html_url":"https://github.com/strongloop/generator-loopback/pull/121","diff_url":"https://github.com/strongloop/generator-loopback/pull/121.diff","patch_url":"https://github.com/strongloop/generator-loopback/pull/121.patch","issue_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/121","number":121,"state":"open","locked":false,"title":"[DO NOT MERGE YET] #1783 Add command line printing swagger definition to loopback","user":{"login":"0candy","id":14314570,"avatar_url":"https://avatars.githubusercontent.com/u/14314570?v=3","gravatar_id":"","url":"https://api.github.com/users/0candy","html_url":"https://github.com/0candy","followers_url":"https://api.github.com/users/0candy/followers","following_url":"https://api.github.com/users/0candy/following{/other_user}","gists_url":"https://api.github.com/users/0candy/gists{/gist_id}","starred_url":"https://api.github.com/users/0candy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0candy/subscriptions","organizations_url":"https://api.github.com/users/0candy/orgs","repos_url":"https://api.github.com/users/0candy/repos","events_url":"https://api.github.com/users/0candy/events{/privacy}","received_events_url":"https://api.github.com/users/0candy/received_events","type":"User","site_admin":false},"body":"Second part of the change for command line printing for swagger in loopback.\r\n\r\n@bajtos Please review.","created_at":"2015-11-23T21:35:44Z","updated_at":"2015-12-21T21:24:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff1af1a7a452e2e98e097dd6fed9f7b67b9cdd92","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/generator-loopback/pulls/121/commits","review_comments_url":"https://api.github.com/repos/strongloop/generator-loopback/pulls/121/comments","review_comment_url":"https://api.github.com/repos/strongloop/generator-loopback/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/121/comments","statuses_url":"https://api.github.com/repos/strongloop/generator-loopback/statuses/cea815c4552b6a58b15d5a7ca40931d3d56b35ca","head":{"label":"strongloop:1783_cli_swagger","ref":"1783_cli_swagger","sha":"cea815c4552b6a58b15d5a7ca40931d3d56b35ca","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":19692503,"name":"generator-loopback","full_name":"strongloop/generator-loopback","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/generator-loopback","description":"Yeoman generator that scaffolds out a LoopBack application","fork":false,"url":"https://api.github.com/repos/strongloop/generator-loopback","forks_url":"https://api.github.com/repos/strongloop/generator-loopback/forks","keys_url":"https://api.github.com/repos/strongloop/generator-loopback/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/generator-loopback/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/generator-loopback/teams","hooks_url":"https://api.github.com/repos/strongloop/generator-loopback/hooks","issue_events_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/generator-loopback/events","assignees_url":"https://api.github.com/repos/strongloop/generator-loopback/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/generator-loopback/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/generator-loopback/tags","blobs_url":"https://api.github.com/repos/strongloop/generator-loopback/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/generator-loopback/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/generator-loopback/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/generator-loopback/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/generator-loopback/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/generator-loopback/languages","stargazers_url":"https://api.github.com/repos/strongloop/generator-loopback/stargazers","contributors_url":"https://api.github.com/repos/strongloop/generator-loopback/contributors","subscribers_url":"https://api.github.com/repos/strongloop/generator-loopback/subscribers","subscription_url":"https://api.github.com/repos/strongloop/generator-loopback/subscription","commits_url":"https://api.github.com/repos/strongloop/generator-loopback/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/generator-loopback/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/generator-loopback/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/generator-loopback/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/generator-loopback/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/generator-loopback/merges","archive_url":"https://api.github.com/repos/strongloop/generator-loopback/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/generator-loopback/downloads","issues_url":"https://api.github.com/repos/strongloop/generator-loopback/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/generator-loopback/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/generator-loopback/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/generator-loopback/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/generator-loopback/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/generator-loopback/releases{/id}","created_at":"2014-05-12T09:15:28Z","updated_at":"2015-12-10T15:41:35Z","pushed_at":"2015-12-21T20:57:37Z","git_url":"git://github.com/strongloop/generator-loopback.git","ssh_url":"git@github.com:strongloop/generator-loopback.git","clone_url":"https://github.com/strongloop/generator-loopback.git","svn_url":"https://github.com/strongloop/generator-loopback","homepage":"http://loopback.io","size":1278,"stargazers_count":53,"watchers_count":53,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":22,"forks":24,"open_issues":22,"watchers":53,"default_branch":"master"}},"base":{"label":"strongloop:master","ref":"master","sha":"b48cc48be6b32d10bc8327a65da286c2ca6e245f","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":19692503,"name":"generator-loopback","full_name":"strongloop/generator-loopback","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/generator-loopback","description":"Yeoman generator that scaffolds out a LoopBack application","fork":false,"url":"https://api.github.com/repos/strongloop/generator-loopback","forks_url":"https://api.github.com/repos/strongloop/generator-loopback/forks","keys_url":"https://api.github.com/repos/strongloop/generator-loopback/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/generator-loopback/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/generator-loopback/teams","hooks_url":"https://api.github.com/repos/strongloop/generator-loopback/hooks","issue_events_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/generator-loopback/events","assignees_url":"https://api.github.com/repos/strongloop/generator-loopback/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/generator-loopback/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/generator-loopback/tags","blobs_url":"https://api.github.com/repos/strongloop/generator-loopback/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/generator-loopback/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/generator-loopback/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/generator-loopback/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/generator-loopback/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/generator-loopback/languages","stargazers_url":"https://api.github.com/repos/strongloop/generator-loopback/stargazers","contributors_url":"https://api.github.com/repos/strongloop/generator-loopback/contributors","subscribers_url":"https://api.github.com/repos/strongloop/generator-loopback/subscribers","subscription_url":"https://api.github.com/repos/strongloop/generator-loopback/subscription","commits_url":"https://api.github.com/repos/strongloop/generator-loopback/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/generator-loopback/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/generator-loopback/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/generator-loopback/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/generator-loopback/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/generator-loopback/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/generator-loopback/merges","archive_url":"https://api.github.com/repos/strongloop/generator-loopback/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/generator-loopback/downloads","issues_url":"https://api.github.com/repos/strongloop/generator-loopback/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/generator-loopback/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/generator-loopback/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/generator-loopback/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/generator-loopback/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/generator-loopback/releases{/id}","created_at":"2014-05-12T09:15:28Z","updated_at":"2015-12-10T15:41:35Z","pushed_at":"2015-12-21T20:57:37Z","git_url":"git://github.com/strongloop/generator-loopback.git","ssh_url":"git@github.com:strongloop/generator-loopback.git","clone_url":"https://github.com/strongloop/generator-loopback.git","svn_url":"https://github.com/strongloop/generator-loopback","homepage":"http://loopback.io","size":1278,"stargazers_count":53,"watchers_count":53,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":22,"forks":24,"open_issues":22,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongloop/generator-loopback/pulls/121"},"html":{"href":"https://github.com/strongloop/generator-loopback/pull/121"},"issue":{"href":"https://api.github.com/repos/strongloop/generator-loopback/issues/121"},"comments":{"href":"https://api.github.com/repos/strongloop/generator-loopback/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/strongloop/generator-loopback/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/strongloop/generator-loopback/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongloop/generator-loopback/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/strongloop/generator-loopback/statuses/cea815c4552b6a58b15d5a7ca40931d3d56b35ca"}}}}