{"action":"created","issue":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/1796","labels_url":"https://api.github.com/repos/WP-API/WP-API/issues/1796/labels{/name}","comments_url":"https://api.github.com/repos/WP-API/WP-API/issues/1796/comments","events_url":"https://api.github.com/repos/WP-API/WP-API/issues/1796/events","html_url":"https://github.com/WP-API/WP-API/issues/1796","id":120858364,"number":1796,"title":"GET collection with invalid context produces nonsensical response","user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/WP-API/WP-API/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/WP-API/WP-API/labels/Discussion","name":"Discussion","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/WP-API/WP-API/milestones/10","html_url":"https://github.com/WP-API/WP-API/milestones/2.0","labels_url":"https://api.github.com/repos/WP-API/WP-API/milestones/10/labels","id":844496,"number":10,"title":"2.0","description":"","creator":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"open_issues":82,"closed_issues":219,"state":"open","created_at":"2014-10-29T00:12:18Z","updated_at":"2015-12-09T23:12:10Z","due_on":"2016-01-27T08:00:00Z","closed_at":null},"comments":1,"created_at":"2015-12-07T20:17:53Z","updated_at":"2015-12-09T23:15:19Z","closed_at":null,"body":"I'd expect to get an error when I provide an invalid context, not this nonsensical response:\r\n\r\n```\r\nlocal ➜  ~  http GET http://wordpress-develop.dev/wp-json/wp/v2/posts\\?context\\=foo\r\nHTTP/1.1 200 OK\r\n[{\"_links\":{\"self\":[{\"href\":\"http:\\/\\/wordpress-develop.dev\\/wp-json\\/wp\\/v2\\/posts\\/1\"}],\"collection\":[{\"href\":\"http:\\/\\/wordpress-develop.dev\\/wp-json\\/wp\\/v2\\/posts\"}],\"author\":[{\"embeddable\":true,\"href\":\"http:\\/\\/wordpress-develop.dev\\/wp-json\\/wp\\/v2\\/users\\/1\"}],\"replies\":[{\"embeddable\":true,\"href\":\"http:\\/\\/wordpress-develop.dev\\/wp-json\\/wp\\/v2\\/comments?post=1\"}],\"version-history\":[{\"href\":\"http:\\/\\/wordpress-develop.dev\\/wp-json\\/wp\\/v2\\/posts\\/1\\/revisions\"}],\"https:\\/\\/api.w.org\\/featuredmedia\":[{\"embeddable\":true,\"href\":\"http:\\/\\/wordpress-develop.dev\\/wp-json\\/wp\\/v2\\/media\\/5\"}],\"https:\\/\\/api.w.org\\/attachment\":[{\"href\":\"http:\\/\\/wordpress-develop.dev\\/wp-json\\/wp\\/v2\\/media?parent=1\"}],\"https:\\/\\/api.w.org\\/term\":[{\"taxonomy\":\"category\",\"embeddable\":true,\"href\":\"http:\\/\\/wordpress-develop.dev\\/wp-json\\/wp\\/v2\\/posts\\/1\\/terms\\/category\"},{\"taxonomy\":\"post_tag\",\"embeddable\":true,\"href\":\"http:\\/\\/wordpress-develop.dev\\/wp-json\\/wp\\/v2\\/posts\\/1\\/terms\\/tag\"},{\"taxonomy\":\"post_format\",\"embeddable\":true,\"href\":\"http:\\/\\/wordpress-develop.dev\\/wp-json\\/wp\\/v2\\/posts\\/1\\/terms\\/post_format\"}],\"https:\\/\\/api.w.org\\/meta\":[{\"embeddable\":true,\"href\":\"http:\\/\\/wordpress-develop.dev\\/wp-json\\/wp\\/v2\\/posts\\/1\\/meta\"}]}}]\r\n```"},"comment":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/comments/163432942","html_url":"https://github.com/WP-API/WP-API/issues/1796#issuecomment-163432942","issue_url":"https://api.github.com/repos/WP-API/WP-API/issues/1796","id":163432942,"user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T23:15:19Z","updated_at":"2015-12-09T23:15:19Z","body":"We should be validating `context` on collection requests ([discussion](https://wordpress.slack.com/archives/core-restapi/p1449702766001911))"}}