{"action":"created","comment":{"url":"https://api.github.com/repos/apiaryio/metamorphoses/pulls/comments/92065572","pull_request_review_id":12575236,"id":92065572,"diff_hunk":"@@ -0,0 +1,170 @@\n+{assert} = require('chai')\n+sinon = require('sinon')\n+\n+blueprintApi = require('../src/blueprint-api')\n+\n+\n+describe('Serialization of the Blueprint interface (Application AST)', ->\n+  describe('Blueprint object', ->","path":"test/serialize-deserialize-test.coffee","position":8,"original_position":8,"commit_id":"7b09347d32445a153181b75a5a3d8c53f9382d2e","original_commit_id":"7b09347d32445a153181b75a5a3d8c53f9382d2e","user":{"login":"kylef","id":44164,"avatar_url":"https://avatars.githubusercontent.com/u/44164?v=3","gravatar_id":"","url":"https://api.github.com/users/kylef","html_url":"https://github.com/kylef","followers_url":"https://api.github.com/users/kylef/followers","following_url":"https://api.github.com/users/kylef/following{/other_user}","gists_url":"https://api.github.com/users/kylef/gists{/gist_id}","starred_url":"https://api.github.com/users/kylef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylef/subscriptions","organizations_url":"https://api.github.com/users/kylef/orgs","repos_url":"https://api.github.com/users/kylef/repos","events_url":"https://api.github.com/users/kylef/events{/privacy}","received_events_url":"https://api.github.com/users/kylef/received_events","type":"User","site_admin":false},"body":"To aid review, this is the only spec that has been changed. Before we grabbed the `ast` via parsing the Apiary Blueprint. Instead, I have manually constructed the AST and placed it below.\r\n\r\nI'm not too sure if this test actually adds anything it seems unnecessary that we need the functionality to serialise the Blueprint into this legacy Apiary Blueprint format. Perhaps we could remove `obj.toBlueprint()`.","created_at":"2016-12-12T23:27:43Z","updated_at":"2016-12-12T23:27:43Z","html_url":"https://github.com/apiaryio/metamorphoses/pull/72#discussion_r92065572","pull_request_url":"https://api.github.com/repos/apiaryio/metamorphoses/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/apiaryio/metamorphoses/pulls/comments/92065572"},"html":{"href":"https://github.com/apiaryio/metamorphoses/pull/72#discussion_r92065572"},"pull_request":{"href":"https://api.github.com/repos/apiaryio/metamorphoses/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/apiaryio/metamorphoses/pulls/72","id":97656372,"html_url":"https://github.com/apiaryio/metamorphoses/pull/72","diff_url":"https://github.com/apiaryio/metamorphoses/pull/72.diff","patch_url":"https://github.com/apiaryio/metamorphoses/pull/72.patch","issue_url":"https://api.github.com/repos/apiaryio/metamorphoses/issues/72","number":72,"state":"open","locked":false,"title":"Restore serialize/deserialize tests","user":{"login":"kylef","id":44164,"avatar_url":"https://avatars.githubusercontent.com/u/44164?v=3","gravatar_id":"","url":"https://api.github.com/users/kylef","html_url":"https://github.com/kylef","followers_url":"https://api.github.com/users/kylef/followers","following_url":"https://api.github.com/users/kylef/following{/other_user}","gists_url":"https://api.github.com/users/kylef/gists{/gist_id}","starred_url":"https://api.github.com/users/kylef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylef/subscriptions","organizations_url":"https://api.github.com/users/kylef/orgs","repos_url":"https://api.github.com/users/kylef/repos","events_url":"https://api.github.com/users/kylef/events{/privacy}","received_events_url":"https://api.github.com/users/kylef/received_events","type":"User","site_admin":false},"body":"This PR restores some serialize/deserialization tests that were incorrectly removed during https://github.com/apiaryio/metamorphoses/pull/69.\r\n\r\n##### Before\r\n\r\n```\r\n=============================== Coverage summary ===============================\r\nStatements   : 77.52% ( 531/685 )\r\nBranches     : 73.08% ( 152/208 )\r\nFunctions    : 72.04% ( 67/93 )\r\nLines        : 85.45% ( 499/584 )\r\n================================================================================\r\n```\r\n\r\n##### After\r\n\r\n```\r\nStatements   : 85.11% ( 583/685 )\r\nBranches     : 78.37% ( 163/208 )\r\nFunctions    : 88.17% ( 82/93 )\r\nLines        : 91.27% ( 533/584 )\r\n================================================================================\r\n```","created_at":"2016-12-12T23:25:43Z","updated_at":"2016-12-12T23:27:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e32a09b767e57cc00625feccbd29b2eb5c3301b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apiaryio/metamorphoses/pulls/72/commits","review_comments_url":"https://api.github.com/repos/apiaryio/metamorphoses/pulls/72/comments","review_comment_url":"https://api.github.com/repos/apiaryio/metamorphoses/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apiaryio/metamorphoses/issues/72/comments","statuses_url":"https://api.github.com/repos/apiaryio/metamorphoses/statuses/7b09347d32445a153181b75a5a3d8c53f9382d2e","head":{"label":"apiaryio:kylef/coverage","ref":"kylef/coverage","sha":"7b09347d32445a153181b75a5a3d8c53f9382d2e","user":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"repo":{"id":41679462,"name":"metamorphoses","full_name":"apiaryio/metamorphoses","owner":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apiaryio/metamorphoses","description":"Transforms API Blueprint AST or legacy Apiary Blueprint AST into Apiary Application AST","fork":false,"url":"https://api.github.com/repos/apiaryio/metamorphoses","forks_url":"https://api.github.com/repos/apiaryio/metamorphoses/forks","keys_url":"https://api.github.com/repos/apiaryio/metamorphoses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/metamorphoses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/metamorphoses/teams","hooks_url":"https://api.github.com/repos/apiaryio/metamorphoses/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/metamorphoses/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/metamorphoses/events","assignees_url":"https://api.github.com/repos/apiaryio/metamorphoses/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/metamorphoses/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/metamorphoses/tags","blobs_url":"https://api.github.com/repos/apiaryio/metamorphoses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/metamorphoses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/metamorphoses/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/metamorphoses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/metamorphoses/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/metamorphoses/languages","stargazers_url":"https://api.github.com/repos/apiaryio/metamorphoses/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/metamorphoses/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/metamorphoses/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/metamorphoses/subscription","commits_url":"https://api.github.com/repos/apiaryio/metamorphoses/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/metamorphoses/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/metamorphoses/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/metamorphoses/issues/comments{/number}","contents_url":"https://api.github.com/repos/apiaryio/metamorphoses/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/metamorphoses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/metamorphoses/merges","archive_url":"https://api.github.com/repos/apiaryio/metamorphoses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/metamorphoses/downloads","issues_url":"https://api.github.com/repos/apiaryio/metamorphoses/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/metamorphoses/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/metamorphoses/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/metamorphoses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/metamorphoses/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/metamorphoses/releases{/id}","deployments_url":"https://api.github.com/repos/apiaryio/metamorphoses/deployments","created_at":"2015-08-31T14:18:17Z","updated_at":"2016-11-01T17:55:50Z","pushed_at":"2016-12-12T23:25:44Z","git_url":"git://github.com/apiaryio/metamorphoses.git","ssh_url":"git@github.com:apiaryio/metamorphoses.git","clone_url":"https://github.com/apiaryio/metamorphoses.git","svn_url":"https://github.com/apiaryio/metamorphoses","homepage":"","size":230,"stargazers_count":1,"watchers_count":1,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"apiaryio:master","ref":"master","sha":"7d9ebf200b715e33aa900e2e1ebded88e5f6efb4","user":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"repo":{"id":41679462,"name":"metamorphoses","full_name":"apiaryio/metamorphoses","owner":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apiaryio/metamorphoses","description":"Transforms API Blueprint AST or legacy Apiary Blueprint AST into Apiary Application AST","fork":false,"url":"https://api.github.com/repos/apiaryio/metamorphoses","forks_url":"https://api.github.com/repos/apiaryio/metamorphoses/forks","keys_url":"https://api.github.com/repos/apiaryio/metamorphoses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/metamorphoses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/metamorphoses/teams","hooks_url":"https://api.github.com/repos/apiaryio/metamorphoses/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/metamorphoses/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/metamorphoses/events","assignees_url":"https://api.github.com/repos/apiaryio/metamorphoses/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/metamorphoses/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/metamorphoses/tags","blobs_url":"https://api.github.com/repos/apiaryio/metamorphoses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/metamorphoses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/metamorphoses/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/metamorphoses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/metamorphoses/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/metamorphoses/languages","stargazers_url":"https://api.github.com/repos/apiaryio/metamorphoses/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/metamorphoses/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/metamorphoses/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/metamorphoses/subscription","commits_url":"https://api.github.com/repos/apiaryio/metamorphoses/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/metamorphoses/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/metamorphoses/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/metamorphoses/issues/comments{/number}","contents_url":"https://api.github.com/repos/apiaryio/metamorphoses/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/metamorphoses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/metamorphoses/merges","archive_url":"https://api.github.com/repos/apiaryio/metamorphoses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/metamorphoses/downloads","issues_url":"https://api.github.com/repos/apiaryio/metamorphoses/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/metamorphoses/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/metamorphoses/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/metamorphoses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/metamorphoses/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/metamorphoses/releases{/id}","deployments_url":"https://api.github.com/repos/apiaryio/metamorphoses/deployments","created_at":"2015-08-31T14:18:17Z","updated_at":"2016-11-01T17:55:50Z","pushed_at":"2016-12-12T23:25:44Z","git_url":"git://github.com/apiaryio/metamorphoses.git","ssh_url":"git@github.com:apiaryio/metamorphoses.git","clone_url":"https://github.com/apiaryio/metamorphoses.git","svn_url":"https://github.com/apiaryio/metamorphoses","homepage":"","size":230,"stargazers_count":1,"watchers_count":1,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apiaryio/metamorphoses/pulls/72"},"html":{"href":"https://github.com/apiaryio/metamorphoses/pull/72"},"issue":{"href":"https://api.github.com/repos/apiaryio/metamorphoses/issues/72"},"comments":{"href":"https://api.github.com/repos/apiaryio/metamorphoses/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/apiaryio/metamorphoses/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/apiaryio/metamorphoses/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apiaryio/metamorphoses/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/apiaryio/metamorphoses/statuses/7b09347d32445a153181b75a5a3d8c53f9382d2e"}}}}
{"actor":{"display_login":"kylef"}}