{"action":"opened","number":17,"pull_request":{"url":"https://api.github.com/repos/Clever/wag/pulls/17","id":81742527,"html_url":"https://github.com/Clever/wag/pull/17","diff_url":"https://github.com/Clever/wag/pull/17.diff","patch_url":"https://github.com/Clever/wag/pull/17.patch","issue_url":"https://api.github.com/repos/Clever/wag/issues/17","number":17,"state":"open","locked":false,"title":"Support for default values","user":{"login":"kvigen","id":5514539,"avatar_url":"https://avatars.githubusercontent.com/u/5514539?v=3","gravatar_id":"","url":"https://api.github.com/users/kvigen","html_url":"https://github.com/kvigen","followers_url":"https://api.github.com/users/kvigen/followers","following_url":"https://api.github.com/users/kvigen/following{/other_user}","gists_url":"https://api.github.com/users/kvigen/gists{/gist_id}","starred_url":"https://api.github.com/users/kvigen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvigen/subscriptions","organizations_url":"https://api.github.com/users/kvigen/orgs","repos_url":"https://api.github.com/users/kvigen/repos","events_url":"https://api.github.com/users/kvigen/events{/privacy}","received_events_url":"https://api.github.com/users/kvigen/received_events","type":"User","site_admin":false},"body":"This change adds support for default values from the swagger schema. It converts the default value to a string and sets it as the value if it isn't specified.\r\n\r\nIn go-swagger adding a default to a input parameter doesn't make it a non-pointer. My intuition is that it should because the client should never see a nil value, but I held off on implemented that until I got buy-in.\r\n","created_at":"2016-08-18T01:06:55Z","updated_at":"2016-08-18T01:06:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9b0f8802876332816cfa6ce2b4ef28e8652d133b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Clever/wag/pulls/17/commits","review_comments_url":"https://api.github.com/repos/Clever/wag/pulls/17/comments","review_comment_url":"https://api.github.com/repos/Clever/wag/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Clever/wag/issues/17/comments","statuses_url":"https://api.github.com/repos/Clever/wag/statuses/1141de40f398d8791ac01dce59fe896abd3da9db","head":{"label":"Clever:default-values","ref":"default-values","sha":"1141de40f398d8791ac01dce59fe896abd3da9db","user":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"repo":{"id":65332703,"name":"wag","full_name":"Clever/wag","owner":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Clever/wag","description":"sWAGger - Web API Generator","fork":false,"url":"https://api.github.com/repos/Clever/wag","forks_url":"https://api.github.com/repos/Clever/wag/forks","keys_url":"https://api.github.com/repos/Clever/wag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Clever/wag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Clever/wag/teams","hooks_url":"https://api.github.com/repos/Clever/wag/hooks","issue_events_url":"https://api.github.com/repos/Clever/wag/issues/events{/number}","events_url":"https://api.github.com/repos/Clever/wag/events","assignees_url":"https://api.github.com/repos/Clever/wag/assignees{/user}","branches_url":"https://api.github.com/repos/Clever/wag/branches{/branch}","tags_url":"https://api.github.com/repos/Clever/wag/tags","blobs_url":"https://api.github.com/repos/Clever/wag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Clever/wag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Clever/wag/git/refs{/sha}","trees_url":"https://api.github.com/repos/Clever/wag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Clever/wag/statuses/{sha}","languages_url":"https://api.github.com/repos/Clever/wag/languages","stargazers_url":"https://api.github.com/repos/Clever/wag/stargazers","contributors_url":"https://api.github.com/repos/Clever/wag/contributors","subscribers_url":"https://api.github.com/repos/Clever/wag/subscribers","subscription_url":"https://api.github.com/repos/Clever/wag/subscription","commits_url":"https://api.github.com/repos/Clever/wag/commits{/sha}","git_commits_url":"https://api.github.com/repos/Clever/wag/git/commits{/sha}","comments_url":"https://api.github.com/repos/Clever/wag/comments{/number}","issue_comment_url":"https://api.github.com/repos/Clever/wag/issues/comments{/number}","contents_url":"https://api.github.com/repos/Clever/wag/contents/{+path}","compare_url":"https://api.github.com/repos/Clever/wag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Clever/wag/merges","archive_url":"https://api.github.com/repos/Clever/wag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Clever/wag/downloads","issues_url":"https://api.github.com/repos/Clever/wag/issues{/number}","pulls_url":"https://api.github.com/repos/Clever/wag/pulls{/number}","milestones_url":"https://api.github.com/repos/Clever/wag/milestones{/number}","notifications_url":"https://api.github.com/repos/Clever/wag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Clever/wag/labels{/name}","releases_url":"https://api.github.com/repos/Clever/wag/releases{/id}","deployments_url":"https://api.github.com/repos/Clever/wag/deployments","created_at":"2016-08-09T22:34:45Z","updated_at":"2016-08-09T23:19:20Z","pushed_at":"2016-08-18T01:06:55Z","git_url":"git://github.com/Clever/wag.git","ssh_url":"git@github.com:Clever/wag.git","clone_url":"https://github.com/Clever/wag.git","svn_url":"https://github.com/Clever/wag","homepage":null,"size":10321,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Clever:master","ref":"master","sha":"b3475e3b183fe7e31c60f76a1819f280b55ae1ea","user":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"repo":{"id":65332703,"name":"wag","full_name":"Clever/wag","owner":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Clever/wag","description":"sWAGger - Web API Generator","fork":false,"url":"https://api.github.com/repos/Clever/wag","forks_url":"https://api.github.com/repos/Clever/wag/forks","keys_url":"https://api.github.com/repos/Clever/wag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Clever/wag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Clever/wag/teams","hooks_url":"https://api.github.com/repos/Clever/wag/hooks","issue_events_url":"https://api.github.com/repos/Clever/wag/issues/events{/number}","events_url":"https://api.github.com/repos/Clever/wag/events","assignees_url":"https://api.github.com/repos/Clever/wag/assignees{/user}","branches_url":"https://api.github.com/repos/Clever/wag/branches{/branch}","tags_url":"https://api.github.com/repos/Clever/wag/tags","blobs_url":"https://api.github.com/repos/Clever/wag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Clever/wag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Clever/wag/git/refs{/sha}","trees_url":"https://api.github.com/repos/Clever/wag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Clever/wag/statuses/{sha}","languages_url":"https://api.github.com/repos/Clever/wag/languages","stargazers_url":"https://api.github.com/repos/Clever/wag/stargazers","contributors_url":"https://api.github.com/repos/Clever/wag/contributors","subscribers_url":"https://api.github.com/repos/Clever/wag/subscribers","subscription_url":"https://api.github.com/repos/Clever/wag/subscription","commits_url":"https://api.github.com/repos/Clever/wag/commits{/sha}","git_commits_url":"https://api.github.com/repos/Clever/wag/git/commits{/sha}","comments_url":"https://api.github.com/repos/Clever/wag/comments{/number}","issue_comment_url":"https://api.github.com/repos/Clever/wag/issues/comments{/number}","contents_url":"https://api.github.com/repos/Clever/wag/contents/{+path}","compare_url":"https://api.github.com/repos/Clever/wag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Clever/wag/merges","archive_url":"https://api.github.com/repos/Clever/wag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Clever/wag/downloads","issues_url":"https://api.github.com/repos/Clever/wag/issues{/number}","pulls_url":"https://api.github.com/repos/Clever/wag/pulls{/number}","milestones_url":"https://api.github.com/repos/Clever/wag/milestones{/number}","notifications_url":"https://api.github.com/repos/Clever/wag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Clever/wag/labels{/name}","releases_url":"https://api.github.com/repos/Clever/wag/releases{/id}","deployments_url":"https://api.github.com/repos/Clever/wag/deployments","created_at":"2016-08-09T22:34:45Z","updated_at":"2016-08-09T23:19:20Z","pushed_at":"2016-08-18T01:06:55Z","git_url":"git://github.com/Clever/wag.git","ssh_url":"git@github.com:Clever/wag.git","clone_url":"https://github.com/Clever/wag.git","svn_url":"https://github.com/Clever/wag","homepage":null,"size":10321,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Clever/wag/pulls/17"},"html":{"href":"https://github.com/Clever/wag/pull/17"},"issue":{"href":"https://api.github.com/repos/Clever/wag/issues/17"},"comments":{"href":"https://api.github.com/repos/Clever/wag/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/Clever/wag/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/Clever/wag/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Clever/wag/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/Clever/wag/statuses/1141de40f398d8791ac01dce59fe896abd3da9db"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":84,"deletions":7,"changed_files":6}}
{"actor":{"display_login":"kvigen"}}