{"action":"opened","number":250,"pull_request":{"url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/pulls/250","id":28045130,"html_url":"https://github.com/zfcampus/zf-apigility-admin/pull/250","diff_url":"https://github.com/zfcampus/zf-apigility-admin/pull/250.diff","patch_url":"https://github.com/zfcampus/zf-apigility-admin/pull/250.patch","issue_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/issues/250","number":250,"state":"open","locked":false,"title":"Fix validation of the content-negotiation API","user":{"login":"weierophinney","id":25943,"avatar_url":"https://avatars.githubusercontent.com/u/25943?v=3","gravatar_id":"","url":"https://api.github.com/users/weierophinney","html_url":"https://github.com/weierophinney","followers_url":"https://api.github.com/users/weierophinney/followers","following_url":"https://api.github.com/users/weierophinney/following{/other_user}","gists_url":"https://api.github.com/users/weierophinney/gists{/gist_id}","starred_url":"https://api.github.com/users/weierophinney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weierophinney/subscriptions","organizations_url":"https://api.github.com/users/weierophinney/orgs","repos_url":"https://api.github.com/users/weierophinney/repos","events_url":"https://api.github.com/users/weierophinney/events{/privacy}","received_events_url":"https://api.github.com/users/weierophinney/received_events","type":"User","site_admin":false},"body":"This fix addresses #249 by providing a new input filter used in POST requests\nto the content-negotiation API. The new input filter checks for the presence of\na `content_name` value in the payload, and then passes the remaining data on to\nthe parent content negotiation input filter to validate.\n\nA valid POST payload then looks like:\n\n```JSON\n{\n    \"content_name\": \"Test\",\n    \"Zend\\View\\Model\\ViewModel\": [\n        \"text/html\",\n        \"application/xhtml+xml\"\n    ]\n}\n```\n\nWhile PATCH payloads remove the `content_name` parameter (as it's part of the URI).","created_at":"2015-01-26T17:40:37Z","updated_at":"2015-01-26T17:40:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/pulls/250/commits","review_comments_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/pulls/250/comments","review_comment_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/pulls/comments/{number}","comments_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/issues/250/comments","statuses_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/statuses/8d7651279134ebb12e8428303fe85bf2a94564b4","head":{"label":"weierophinney:hotfix/249","ref":"hotfix/249","sha":"8d7651279134ebb12e8428303fe85bf2a94564b4","user":{"login":"weierophinney","id":25943,"avatar_url":"https://avatars.githubusercontent.com/u/25943?v=3","gravatar_id":"","url":"https://api.github.com/users/weierophinney","html_url":"https://github.com/weierophinney","followers_url":"https://api.github.com/users/weierophinney/followers","following_url":"https://api.github.com/users/weierophinney/following{/other_user}","gists_url":"https://api.github.com/users/weierophinney/gists{/gist_id}","starred_url":"https://api.github.com/users/weierophinney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weierophinney/subscriptions","organizations_url":"https://api.github.com/users/weierophinney/orgs","repos_url":"https://api.github.com/users/weierophinney/repos","events_url":"https://api.github.com/users/weierophinney/events{/privacy}","received_events_url":"https://api.github.com/users/weierophinney/received_events","type":"User","site_admin":false},"repo":{"id":15263138,"name":"zf-apigility-admin","full_name":"weierophinney/zf-apigility-admin","owner":{"login":"weierophinney","id":25943,"avatar_url":"https://avatars.githubusercontent.com/u/25943?v=3","gravatar_id":"","url":"https://api.github.com/users/weierophinney","html_url":"https://github.com/weierophinney","followers_url":"https://api.github.com/users/weierophinney/followers","following_url":"https://api.github.com/users/weierophinney/following{/other_user}","gists_url":"https://api.github.com/users/weierophinney/gists{/gist_id}","starred_url":"https://api.github.com/users/weierophinney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weierophinney/subscriptions","organizations_url":"https://api.github.com/users/weierophinney/orgs","repos_url":"https://api.github.com/users/weierophinney/repos","events_url":"https://api.github.com/users/weierophinney/events{/privacy}","received_events_url":"https://api.github.com/users/weierophinney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/weierophinney/zf-apigility-admin","description":null,"fork":true,"url":"https://api.github.com/repos/weierophinney/zf-apigility-admin","forks_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/forks","keys_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/teams","hooks_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/hooks","issue_events_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/issues/events{/number}","events_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/events","assignees_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/assignees{/user}","branches_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/branches{/branch}","tags_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/tags","blobs_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/languages","stargazers_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/stargazers","contributors_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/contributors","subscribers_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/subscribers","subscription_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/subscription","commits_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/issues/comments/{number}","contents_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/contents/{+path}","compare_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/merges","archive_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/downloads","issues_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/issues{/number}","pulls_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/labels{/name}","releases_url":"https://api.github.com/repos/weierophinney/zf-apigility-admin/releases{/id}","created_at":"2013-12-17T18:57:37Z","updated_at":"2014-06-04T15:12:27Z","pushed_at":"2015-01-26T17:38:17Z","git_url":"git://github.com/weierophinney/zf-apigility-admin.git","ssh_url":"git@github.com:weierophinney/zf-apigility-admin.git","clone_url":"https://github.com/weierophinney/zf-apigility-admin.git","svn_url":"https://github.com/weierophinney/zf-apigility-admin","homepage":null,"size":8114,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zfcampus:master","ref":"master","sha":"f10fe53fc34422d91bc0e2cc0c1773712d5fdc1e","user":{"login":"zfcampus","id":5454933,"avatar_url":"https://avatars.githubusercontent.com/u/5454933?v=3","gravatar_id":"","url":"https://api.github.com/users/zfcampus","html_url":"https://github.com/zfcampus","followers_url":"https://api.github.com/users/zfcampus/followers","following_url":"https://api.github.com/users/zfcampus/following{/other_user}","gists_url":"https://api.github.com/users/zfcampus/gists{/gist_id}","starred_url":"https://api.github.com/users/zfcampus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zfcampus/subscriptions","organizations_url":"https://api.github.com/users/zfcampus/orgs","repos_url":"https://api.github.com/users/zfcampus/repos","events_url":"https://api.github.com/users/zfcampus/events{/privacy}","received_events_url":"https://api.github.com/users/zfcampus/received_events","type":"Organization","site_admin":false},"repo":{"id":12137587,"name":"zf-apigility-admin","full_name":"zfcampus/zf-apigility-admin","owner":{"login":"zfcampus","id":5454933,"avatar_url":"https://avatars.githubusercontent.com/u/5454933?v=3","gravatar_id":"","url":"https://api.github.com/users/zfcampus","html_url":"https://github.com/zfcampus","followers_url":"https://api.github.com/users/zfcampus/followers","following_url":"https://api.github.com/users/zfcampus/following{/other_user}","gists_url":"https://api.github.com/users/zfcampus/gists{/gist_id}","starred_url":"https://api.github.com/users/zfcampus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zfcampus/subscriptions","organizations_url":"https://api.github.com/users/zfcampus/orgs","repos_url":"https://api.github.com/users/zfcampus/repos","events_url":"https://api.github.com/users/zfcampus/events{/privacy}","received_events_url":"https://api.github.com/users/zfcampus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zfcampus/zf-apigility-admin","description":"Admin API and UI for Apigility","fork":false,"url":"https://api.github.com/repos/zfcampus/zf-apigility-admin","forks_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/forks","keys_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/teams","hooks_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/hooks","issue_events_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/issues/events{/number}","events_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/events","assignees_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/assignees{/user}","branches_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/branches{/branch}","tags_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/tags","blobs_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/languages","stargazers_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/stargazers","contributors_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/contributors","subscribers_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/subscribers","subscription_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/subscription","commits_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/issues/comments/{number}","contents_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/contents/{+path}","compare_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/merges","archive_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/downloads","issues_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/issues{/number}","pulls_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/labels{/name}","releases_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/releases{/id}","created_at":"2013-08-15T15:25:41Z","updated_at":"2014-12-14T01:08:52Z","pushed_at":"2014-09-09T19:54:29Z","git_url":"git://github.com/zfcampus/zf-apigility-admin.git","ssh_url":"git@github.com:zfcampus/zf-apigility-admin.git","clone_url":"https://github.com/zfcampus/zf-apigility-admin.git","svn_url":"https://github.com/zfcampus/zf-apigility-admin","homepage":"https://apigility.org","size":12909,"stargazers_count":53,"watchers_count":53,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":33,"forks":52,"open_issues":33,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zfcampus/zf-apigility-admin/pulls/250"},"html":{"href":"https://github.com/zfcampus/zf-apigility-admin/pull/250"},"issue":{"href":"https://api.github.com/repos/zfcampus/zf-apigility-admin/issues/250"},"comments":{"href":"https://api.github.com/repos/zfcampus/zf-apigility-admin/issues/250/comments"},"review_comments":{"href":"https://api.github.com/repos/zfcampus/zf-apigility-admin/pulls/250/comments"},"review_comment":{"href":"https://api.github.com/repos/zfcampus/zf-apigility-admin/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/zfcampus/zf-apigility-admin/pulls/250/commits"},"statuses":{"href":"https://api.github.com/repos/zfcampus/zf-apigility-admin/statuses/8d7651279134ebb12e8428303fe85bf2a94564b4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":249,"deletions":4,"changed_files":6}}