{"action":"opened","number":57,"pull_request":{"url":"https://api.github.com/repos/zalando/swagger1st/pulls/57","id":92934050,"html_url":"https://github.com/zalando/swagger1st/pull/57","diff_url":"https://github.com/zalando/swagger1st/pull/57.diff","patch_url":"https://github.com/zalando/swagger1st/pull/57.patch","issue_url":"https://api.github.com/repos/zalando/swagger1st/issues/57","number":57,"state":"open","locked":false,"title":"Handle empty array parameters","user":{"login":"sebastianpoeplau","id":1150854,"avatar_url":"https://avatars.githubusercontent.com/u/1150854?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianpoeplau","html_url":"https://github.com/sebastianpoeplau","followers_url":"https://api.github.com/users/sebastianpoeplau/followers","following_url":"https://api.github.com/users/sebastianpoeplau/following{/other_user}","gists_url":"https://api.github.com/users/sebastianpoeplau/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianpoeplau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianpoeplau/subscriptions","organizations_url":"https://api.github.com/users/sebastianpoeplau/orgs","repos_url":"https://api.github.com/users/sebastianpoeplau/repos","events_url":"https://api.github.com/users/sebastianpoeplau/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianpoeplau/received_events","type":"User","site_admin":false},"body":"I don't find a clear hint in the Swagger specification as to how the empty string should be interpreted. I decided to view it as an array with a single element rather than the empty array because otherwise there would be no way to specify that value; the empty array can always be expressed by omitting the parameter altogether.\r\n\r\nThis fixes #56.","created_at":"2016-11-09T10:02:56Z","updated_at":"2016-11-09T10:02:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zalando/swagger1st/pulls/57/commits","review_comments_url":"https://api.github.com/repos/zalando/swagger1st/pulls/57/comments","review_comment_url":"https://api.github.com/repos/zalando/swagger1st/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zalando/swagger1st/issues/57/comments","statuses_url":"https://api.github.com/repos/zalando/swagger1st/statuses/dae5bd9c66c0cb433a209f4a6c76eaf002b1e994","head":{"label":"zalando:fix/empty-collection","ref":"fix/empty-collection","sha":"dae5bd9c66c0cb433a209f4a6c76eaf002b1e994","user":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"repo":{"id":31557381,"name":"swagger1st","full_name":"zalando/swagger1st","owner":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando/swagger1st","description":"A Clojure Ring handler that parses, validates and routes requests based on your swagger definitions.","fork":false,"url":"https://api.github.com/repos/zalando/swagger1st","forks_url":"https://api.github.com/repos/zalando/swagger1st/forks","keys_url":"https://api.github.com/repos/zalando/swagger1st/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando/swagger1st/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando/swagger1st/teams","hooks_url":"https://api.github.com/repos/zalando/swagger1st/hooks","issue_events_url":"https://api.github.com/repos/zalando/swagger1st/issues/events{/number}","events_url":"https://api.github.com/repos/zalando/swagger1st/events","assignees_url":"https://api.github.com/repos/zalando/swagger1st/assignees{/user}","branches_url":"https://api.github.com/repos/zalando/swagger1st/branches{/branch}","tags_url":"https://api.github.com/repos/zalando/swagger1st/tags","blobs_url":"https://api.github.com/repos/zalando/swagger1st/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando/swagger1st/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando/swagger1st/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando/swagger1st/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando/swagger1st/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando/swagger1st/languages","stargazers_url":"https://api.github.com/repos/zalando/swagger1st/stargazers","contributors_url":"https://api.github.com/repos/zalando/swagger1st/contributors","subscribers_url":"https://api.github.com/repos/zalando/swagger1st/subscribers","subscription_url":"https://api.github.com/repos/zalando/swagger1st/subscription","commits_url":"https://api.github.com/repos/zalando/swagger1st/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando/swagger1st/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando/swagger1st/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando/swagger1st/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando/swagger1st/contents/{+path}","compare_url":"https://api.github.com/repos/zalando/swagger1st/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando/swagger1st/merges","archive_url":"https://api.github.com/repos/zalando/swagger1st/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando/swagger1st/downloads","issues_url":"https://api.github.com/repos/zalando/swagger1st/issues{/number}","pulls_url":"https://api.github.com/repos/zalando/swagger1st/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando/swagger1st/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando/swagger1st/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando/swagger1st/labels{/name}","releases_url":"https://api.github.com/repos/zalando/swagger1st/releases{/id}","deployments_url":"https://api.github.com/repos/zalando/swagger1st/deployments","created_at":"2015-03-02T19:04:08Z","updated_at":"2016-11-07T23:41:06Z","pushed_at":"2016-11-09T10:02:56Z","git_url":"git://github.com/zalando/swagger1st.git","ssh_url":"git@github.com:zalando/swagger1st.git","clone_url":"https://github.com/zalando/swagger1st.git","svn_url":"https://github.com/zalando/swagger1st","homepage":"","size":1627,"stargazers_count":31,"watchers_count":31,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":14,"forks":8,"open_issues":14,"watchers":31,"default_branch":"master"}},"base":{"label":"zalando:master","ref":"master","sha":"471c6d60f2071aad2b8ce4f5f32e9bf8fca23bd8","user":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"repo":{"id":31557381,"name":"swagger1st","full_name":"zalando/swagger1st","owner":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando/swagger1st","description":"A Clojure Ring handler that parses, validates and routes requests based on your swagger definitions.","fork":false,"url":"https://api.github.com/repos/zalando/swagger1st","forks_url":"https://api.github.com/repos/zalando/swagger1st/forks","keys_url":"https://api.github.com/repos/zalando/swagger1st/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando/swagger1st/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando/swagger1st/teams","hooks_url":"https://api.github.com/repos/zalando/swagger1st/hooks","issue_events_url":"https://api.github.com/repos/zalando/swagger1st/issues/events{/number}","events_url":"https://api.github.com/repos/zalando/swagger1st/events","assignees_url":"https://api.github.com/repos/zalando/swagger1st/assignees{/user}","branches_url":"https://api.github.com/repos/zalando/swagger1st/branches{/branch}","tags_url":"https://api.github.com/repos/zalando/swagger1st/tags","blobs_url":"https://api.github.com/repos/zalando/swagger1st/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando/swagger1st/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando/swagger1st/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando/swagger1st/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando/swagger1st/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando/swagger1st/languages","stargazers_url":"https://api.github.com/repos/zalando/swagger1st/stargazers","contributors_url":"https://api.github.com/repos/zalando/swagger1st/contributors","subscribers_url":"https://api.github.com/repos/zalando/swagger1st/subscribers","subscription_url":"https://api.github.com/repos/zalando/swagger1st/subscription","commits_url":"https://api.github.com/repos/zalando/swagger1st/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando/swagger1st/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando/swagger1st/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando/swagger1st/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando/swagger1st/contents/{+path}","compare_url":"https://api.github.com/repos/zalando/swagger1st/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando/swagger1st/merges","archive_url":"https://api.github.com/repos/zalando/swagger1st/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando/swagger1st/downloads","issues_url":"https://api.github.com/repos/zalando/swagger1st/issues{/number}","pulls_url":"https://api.github.com/repos/zalando/swagger1st/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando/swagger1st/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando/swagger1st/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando/swagger1st/labels{/name}","releases_url":"https://api.github.com/repos/zalando/swagger1st/releases{/id}","deployments_url":"https://api.github.com/repos/zalando/swagger1st/deployments","created_at":"2015-03-02T19:04:08Z","updated_at":"2016-11-07T23:41:06Z","pushed_at":"2016-11-09T10:02:56Z","git_url":"git://github.com/zalando/swagger1st.git","ssh_url":"git@github.com:zalando/swagger1st.git","clone_url":"https://github.com/zalando/swagger1st.git","svn_url":"https://github.com/zalando/swagger1st","homepage":"","size":1627,"stargazers_count":31,"watchers_count":31,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":14,"forks":8,"open_issues":14,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zalando/swagger1st/pulls/57"},"html":{"href":"https://github.com/zalando/swagger1st/pull/57"},"issue":{"href":"https://api.github.com/repos/zalando/swagger1st/issues/57"},"comments":{"href":"https://api.github.com/repos/zalando/swagger1st/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/zalando/swagger1st/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/zalando/swagger1st/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zalando/swagger1st/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/zalando/swagger1st/statuses/dae5bd9c66c0cb433a209f4a6c76eaf002b1e994"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":28,"deletions":20,"changed_files":2}}
{"actor":{"display_login":"sebastianpoeplau"}}