{"action":"created","comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/comments/36444085","id":36444085,"diff_hunk":"@@ -456,7 +456,7 @@\n         </repository>\n     </repositories>\n     <properties>\n-        <swagger-parser-version>1.0.9-SNAPSHOT</swagger-parser-version>\n+        <swagger-parser-version>1.0.9</swagger-parser-version>","path":"pom.xml","position":5,"original_position":5,"commit_id":"5328c00e8f48b4da0e4341a5356524868f9fceef","original_commit_id":"5328c00e8f48b4da0e4341a5356524868f9fceef","user":{"login":"tiffanyperumpail","id":10627244,"avatar_url":"https://avatars.githubusercontent.com/u/10627244?v=3","gravatar_id":"","url":"https://api.github.com/users/tiffanyperumpail","html_url":"https://github.com/tiffanyperumpail","followers_url":"https://api.github.com/users/tiffanyperumpail/followers","following_url":"https://api.github.com/users/tiffanyperumpail/following{/other_user}","gists_url":"https://api.github.com/users/tiffanyperumpail/gists{/gist_id}","starred_url":"https://api.github.com/users/tiffanyperumpail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiffanyperumpail/subscriptions","organizations_url":"https://api.github.com/users/tiffanyperumpail/orgs","repos_url":"https://api.github.com/users/tiffanyperumpail/repos","events_url":"https://api.github.com/users/tiffanyperumpail/events{/privacy}","received_events_url":"https://api.github.com/users/tiffanyperumpail/received_events","type":"User","site_admin":false},"body":"My changes don't depend on using swagger parser 1.0.9 instead of 1.0.9-SNAPSHOT; I made that change because the Travis CI failed to build until I bumped the version of swagger-parser to 1.0.9. I could change it back if necessary.\r\n\r\n![screen shot 2015-08-06 at 10 48 44 am](https://cloud.githubusercontent.com/assets/10627244/9118973/f654f96a-3c28-11e5-99b5-93331bf4c5cc.png)\r\n","created_at":"2015-08-06T17:52:05Z","updated_at":"2015-08-06T17:52:05Z","html_url":"https://github.com/swagger-api/swagger-codegen/pull/1052#discussion_r36444085","pull_request_url":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/1052","_links":{"self":{"href":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/comments/36444085"},"html":{"href":"https://github.com/swagger-api/swagger-codegen/pull/1052#discussion_r36444085"},"pull_request":{"href":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/1052"}}},"pull_request":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/1052","id":41737487,"html_url":"https://github.com/swagger-api/swagger-codegen/pull/1052","diff_url":"https://github.com/swagger-api/swagger-codegen/pull/1052.diff","patch_url":"https://github.com/swagger-api/swagger-codegen/pull/1052.patch","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1052","number":1052,"state":"open","locked":false,"title":"Default Generator Status","user":{"login":"tiffanyperumpail","id":10627244,"avatar_url":"https://avatars.githubusercontent.com/u/10627244?v=3","gravatar_id":"","url":"https://api.github.com/users/tiffanyperumpail","html_url":"https://github.com/tiffanyperumpail","followers_url":"https://api.github.com/users/tiffanyperumpail/followers","following_url":"https://api.github.com/users/tiffanyperumpail/following{/other_user}","gists_url":"https://api.github.com/users/tiffanyperumpail/gists{/gist_id}","starred_url":"https://api.github.com/users/tiffanyperumpail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiffanyperumpail/subscriptions","organizations_url":"https://api.github.com/users/tiffanyperumpail/orgs","repos_url":"https://api.github.com/users/tiffanyperumpail/repos","events_url":"https://api.github.com/users/tiffanyperumpail/events{/privacy}","received_events_url":"https://api.github.com/users/tiffanyperumpail/received_events","type":"User","site_admin":false},"body":"Change to DefaultGenerator:\r\nWhen the generate() method throw an exception, the exception is caught and a stack trace is printed. Due to the way this exception is caught, it is difficult to detect if code generation has failed when we aren't generating code through the command line. \r\n\r\nFor this reason, I added enum CodeGenStatus, so a status can be set for each instance of the DefaultGenerator.\r\n\r\nThis change is inspired by our needs at Wikia, where we are using Swagger to generate code progammatically and would like to easily detect when generation fails.\r\n\r\nPlease let us know if we've missed anything or didn't take any factors into account with this change.","created_at":"2015-08-05T23:22:21Z","updated_at":"2015-08-06T17:52:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34ed6f5419daf8c690487c86b59cd134a06579da","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/1052/commits","review_comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/1052/comments","review_comment_url":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1052/comments","statuses_url":"https://api.github.com/repos/swagger-api/swagger-codegen/statuses/5328c00e8f48b4da0e4341a5356524868f9fceef","head":{"label":"tiffanyperumpail:develop_2.0","ref":"develop_2.0","sha":"5328c00e8f48b4da0e4341a5356524868f9fceef","user":{"login":"tiffanyperumpail","id":10627244,"avatar_url":"https://avatars.githubusercontent.com/u/10627244?v=3","gravatar_id":"","url":"https://api.github.com/users/tiffanyperumpail","html_url":"https://github.com/tiffanyperumpail","followers_url":"https://api.github.com/users/tiffanyperumpail/followers","following_url":"https://api.github.com/users/tiffanyperumpail/following{/other_user}","gists_url":"https://api.github.com/users/tiffanyperumpail/gists{/gist_id}","starred_url":"https://api.github.com/users/tiffanyperumpail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiffanyperumpail/subscriptions","organizations_url":"https://api.github.com/users/tiffanyperumpail/orgs","repos_url":"https://api.github.com/users/tiffanyperumpail/repos","events_url":"https://api.github.com/users/tiffanyperumpail/events{/privacy}","received_events_url":"https://api.github.com/users/tiffanyperumpail/received_events","type":"User","site_admin":false},"repo":{"id":40271006,"name":"swagger-codegen","full_name":"tiffanyperumpail/swagger-codegen","owner":{"login":"tiffanyperumpail","id":10627244,"avatar_url":"https://avatars.githubusercontent.com/u/10627244?v=3","gravatar_id":"","url":"https://api.github.com/users/tiffanyperumpail","html_url":"https://github.com/tiffanyperumpail","followers_url":"https://api.github.com/users/tiffanyperumpail/followers","following_url":"https://api.github.com/users/tiffanyperumpail/following{/other_user}","gists_url":"https://api.github.com/users/tiffanyperumpail/gists{/gist_id}","starred_url":"https://api.github.com/users/tiffanyperumpail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiffanyperumpail/subscriptions","organizations_url":"https://api.github.com/users/tiffanyperumpail/orgs","repos_url":"https://api.github.com/users/tiffanyperumpail/repos","events_url":"https://api.github.com/users/tiffanyperumpail/events{/privacy}","received_events_url":"https://api.github.com/users/tiffanyperumpail/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tiffanyperumpail/swagger-codegen","description":"swagger-codegen contains a template-driven engine to generate client code in different languages by parsing your Swagger Resource Declaration.","fork":true,"url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen","forks_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/forks","keys_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/teams","hooks_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/hooks","issue_events_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/issues/events{/number}","events_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/events","assignees_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/assignees{/user}","branches_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/branches{/branch}","tags_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/tags","blobs_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/git/refs{/sha}","trees_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/statuses/{sha}","languages_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/languages","stargazers_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/stargazers","contributors_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/contributors","subscribers_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/subscribers","subscription_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/subscription","commits_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/commits{/sha}","git_commits_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/git/commits{/sha}","comments_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/comments{/number}","issue_comment_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/issues/comments{/number}","contents_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/contents/{+path}","compare_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/merges","archive_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/downloads","issues_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/issues{/number}","pulls_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/pulls{/number}","milestones_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/milestones{/number}","notifications_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/labels{/name}","releases_url":"https://api.github.com/repos/tiffanyperumpail/swagger-codegen/releases{/id}","created_at":"2015-08-05T22:05:11Z","updated_at":"2015-08-05T22:05:12Z","pushed_at":"2015-08-05T23:53:48Z","git_url":"git://github.com/tiffanyperumpail/swagger-codegen.git","ssh_url":"git@github.com:tiffanyperumpail/swagger-codegen.git","clone_url":"https://github.com/tiffanyperumpail/swagger-codegen.git","svn_url":"https://github.com/tiffanyperumpail/swagger-codegen","homepage":"http://swagger.io","size":37890,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"swagger-api:develop_2.0","ref":"develop_2.0","sha":"10075345750867aca3f30a5a3148cb49a1698ff1","user":{"login":"swagger-api","id":7658037,"avatar_url":"https://avatars.githubusercontent.com/u/7658037?v=3","gravatar_id":"","url":"https://api.github.com/users/swagger-api","html_url":"https://github.com/swagger-api","followers_url":"https://api.github.com/users/swagger-api/followers","following_url":"https://api.github.com/users/swagger-api/following{/other_user}","gists_url":"https://api.github.com/users/swagger-api/gists{/gist_id}","starred_url":"https://api.github.com/users/swagger-api/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swagger-api/subscriptions","organizations_url":"https://api.github.com/users/swagger-api/orgs","repos_url":"https://api.github.com/users/swagger-api/repos","events_url":"https://api.github.com/users/swagger-api/events{/privacy}","received_events_url":"https://api.github.com/users/swagger-api/received_events","type":"Organization","site_admin":false},"repo":{"id":2006876,"name":"swagger-codegen","full_name":"swagger-api/swagger-codegen","owner":{"login":"swagger-api","id":7658037,"avatar_url":"https://avatars.githubusercontent.com/u/7658037?v=3","gravatar_id":"","url":"https://api.github.com/users/swagger-api","html_url":"https://github.com/swagger-api","followers_url":"https://api.github.com/users/swagger-api/followers","following_url":"https://api.github.com/users/swagger-api/following{/other_user}","gists_url":"https://api.github.com/users/swagger-api/gists{/gist_id}","starred_url":"https://api.github.com/users/swagger-api/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swagger-api/subscriptions","organizations_url":"https://api.github.com/users/swagger-api/orgs","repos_url":"https://api.github.com/users/swagger-api/repos","events_url":"https://api.github.com/users/swagger-api/events{/privacy}","received_events_url":"https://api.github.com/users/swagger-api/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/swagger-api/swagger-codegen","description":"swagger-codegen contains a template-driven engine to generate client code in different languages by parsing your Swagger Resource Declaration.","fork":false,"url":"https://api.github.com/repos/swagger-api/swagger-codegen","forks_url":"https://api.github.com/repos/swagger-api/swagger-codegen/forks","keys_url":"https://api.github.com/repos/swagger-api/swagger-codegen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swagger-api/swagger-codegen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swagger-api/swagger-codegen/teams","hooks_url":"https://api.github.com/repos/swagger-api/swagger-codegen/hooks","issue_events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/events{/number}","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/events","assignees_url":"https://api.github.com/repos/swagger-api/swagger-codegen/assignees{/user}","branches_url":"https://api.github.com/repos/swagger-api/swagger-codegen/branches{/branch}","tags_url":"https://api.github.com/repos/swagger-api/swagger-codegen/tags","blobs_url":"https://api.github.com/repos/swagger-api/swagger-codegen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swagger-api/swagger-codegen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swagger-api/swagger-codegen/git/refs{/sha}","trees_url":"https://api.github.com/repos/swagger-api/swagger-codegen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swagger-api/swagger-codegen/statuses/{sha}","languages_url":"https://api.github.com/repos/swagger-api/swagger-codegen/languages","stargazers_url":"https://api.github.com/repos/swagger-api/swagger-codegen/stargazers","contributors_url":"https://api.github.com/repos/swagger-api/swagger-codegen/contributors","subscribers_url":"https://api.github.com/repos/swagger-api/swagger-codegen/subscribers","subscription_url":"https://api.github.com/repos/swagger-api/swagger-codegen/subscription","commits_url":"https://api.github.com/repos/swagger-api/swagger-codegen/commits{/sha}","git_commits_url":"https://api.github.com/repos/swagger-api/swagger-codegen/git/commits{/sha}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/comments{/number}","issue_comment_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments{/number}","contents_url":"https://api.github.com/repos/swagger-api/swagger-codegen/contents/{+path}","compare_url":"https://api.github.com/repos/swagger-api/swagger-codegen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swagger-api/swagger-codegen/merges","archive_url":"https://api.github.com/repos/swagger-api/swagger-codegen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swagger-api/swagger-codegen/downloads","issues_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues{/number}","pulls_url":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls{/number}","milestones_url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones{/number}","notifications_url":"https://api.github.com/repos/swagger-api/swagger-codegen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels{/name}","releases_url":"https://api.github.com/repos/swagger-api/swagger-codegen/releases{/id}","created_at":"2011-07-06T14:26:48Z","updated_at":"2015-08-06T17:24:07Z","pushed_at":"2015-08-06T08:22:26Z","git_url":"git://github.com/swagger-api/swagger-codegen.git","ssh_url":"git@github.com:swagger-api/swagger-codegen.git","clone_url":"https://github.com/swagger-api/swagger-codegen.git","svn_url":"https://github.com/swagger-api/swagger-codegen","homepage":"http://swagger.io","size":37890,"stargazers_count":1053,"watchers_count":1053,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":606,"mirror_url":null,"open_issues_count":145,"forks":606,"open_issues":145,"watchers":1053,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/1052"},"html":{"href":"https://github.com/swagger-api/swagger-codegen/pull/1052"},"issue":{"href":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1052"},"comments":{"href":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1052/comments"},"review_comments":{"href":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/1052/comments"},"review_comment":{"href":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/1052/commits"},"statuses":{"href":"https://api.github.com/repos/swagger-api/swagger-codegen/statuses/5328c00e8f48b4da0e4341a5356524868f9fceef"}}}}