{"action":"created","issue":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/2693","repository_url":"https://api.github.com/repos/WP-API/WP-API","labels_url":"https://api.github.com/repos/WP-API/WP-API/issues/2693/labels{/name}","comments_url":"https://api.github.com/repos/WP-API/WP-API/issues/2693/comments","events_url":"https://api.github.com/repos/WP-API/WP-API/issues/2693/events","html_url":"https://github.com/WP-API/WP-API/pull/2693","id":176578996,"number":2693,"title":"Add raw and rendered to schema","user":{"login":"websupporter","id":6458412,"avatar_url":"https://avatars.githubusercontent.com/u/6458412?v=3","gravatar_id":"","url":"https://api.github.com/users/websupporter","html_url":"https://github.com/websupporter","followers_url":"https://api.github.com/users/websupporter/followers","following_url":"https://api.github.com/users/websupporter/following{/other_user}","gists_url":"https://api.github.com/users/websupporter/gists{/gist_id}","starred_url":"https://api.github.com/users/websupporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websupporter/subscriptions","organizations_url":"https://api.github.com/users/websupporter/orgs","repos_url":"https://api.github.com/users/websupporter/repos","events_url":"https://api.github.com/users/websupporter/events{/privacy}","received_events_url":"https://api.github.com/users/websupporter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-13T08:20:06Z","updated_at":"2016-09-13T20:19:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/WP-API/WP-API/pulls/2693","html_url":"https://github.com/WP-API/WP-API/pull/2693","diff_url":"https://github.com/WP-API/WP-API/pull/2693.diff","patch_url":"https://github.com/WP-API/WP-API/pull/2693.patch"},"body":"Solves https://github.com/WP-API/WP-API/issues/2670\r\n\r\nFor usual posts we give the title, the excerpt, the guid and the content in two formats: `raw` and `rendered`. In case of revisions, we just gave the `raw` content. This PR extends the schema, which acts now like we know it from usual posts.\r\n\r\nSo, instead of `content` being a string it would now be an object:\r\n```\r\ncontent : {\r\n     raw : \"\",\r\n     rendered: \"\",\r\n}\r\n```\r\n\r\nThe `raw` property would only be send when `context` is set to `edit`."},"comment":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/comments/246810447","html_url":"https://github.com/WP-API/WP-API/pull/2693#issuecomment-246810447","issue_url":"https://api.github.com/repos/WP-API/WP-API/issues/2693","id":246810447,"user":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?v=3","gravatar_id":"","url":"https://api.github.com/users/kadamwhite","html_url":"https://github.com/kadamwhite","followers_url":"https://api.github.com/users/kadamwhite/followers","following_url":"https://api.github.com/users/kadamwhite/following{/other_user}","gists_url":"https://api.github.com/users/kadamwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/kadamwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadamwhite/subscriptions","organizations_url":"https://api.github.com/users/kadamwhite/orgs","repos_url":"https://api.github.com/users/kadamwhite/repos","events_url":"https://api.github.com/users/kadamwhite/events{/privacy}","received_events_url":"https://api.github.com/users/kadamwhite/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T20:19:22Z","updated_at":"2016-09-13T20:19:22Z","body":":+1: from @rmccue, myself & @BE-Webdesign. There is an open question [voiced by Ryan](https://wordpress.slack.com/archives/core-restapi/p1473797676000986) around whether this change moves Revisions sufficiently close to Posts that they should just extend the posts controller. That will be addressed in a separate issue."}}
{"actor":{"display_login":"kadamwhite"}}