{"action":"created","comment":{"url":"https://api.github.com/repos/apiaryio/drafter/pulls/comments/35627127","id":35627127,"diff_hunk":"@@ -117,13 +174,18 @@ namespace refract\n \n     void RenderJSONVisitor::visit(const ArrayElement& e) {\n         RenderJSONVisitor renderer(sos::Base::ArrayType);\n-        std::vector<refract::IElement*>::const_iterator it;\n+\n+        const ArrayElement::ValueType* val = getValue<ArrayElement>(e);\n+        if (!val) {\n+            return;\n+        }\n \n         if (e.element() == \"extend\") {\n             renderer.isExtend = true;\n         }\n \n-        for (it = e.value.begin(); it != e.value.end(); ++it) {\n+        ArrayElement::ValueType::const_iterator it;\n+        for (it = val->begin(); it != val->end(); ++it) {","path":"src/refract/RenderJSONVisitor.cc","position":104,"original_position":104,"commit_id":"01e737913ab899597079c3b7b55323cbeae2884f","original_commit_id":"01e737913ab899597079c3b7b55323cbeae2884f","user":{"login":"pksunkara","id":174703,"avatar_url":"https://avatars.githubusercontent.com/u/174703?v=3","gravatar_id":"","url":"https://api.github.com/users/pksunkara","html_url":"https://github.com/pksunkara","followers_url":"https://api.github.com/users/pksunkara/followers","following_url":"https://api.github.com/users/pksunkara/following{/other_user}","gists_url":"https://api.github.com/users/pksunkara/gists{/gist_id}","starred_url":"https://api.github.com/users/pksunkara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pksunkara/subscriptions","organizations_url":"https://api.github.com/users/pksunkara/orgs","repos_url":"https://api.github.com/users/pksunkara/repos","events_url":"https://api.github.com/users/pksunkara/events{/privacy}","received_events_url":"https://api.github.com/users/pksunkara/received_events","type":"User","site_admin":false},"body":"Please add empty line before this.","created_at":"2015-07-28T08:59:36Z","updated_at":"2015-07-28T08:59:36Z","html_url":"https://github.com/apiaryio/drafter/pull/67#discussion_r35627127","pull_request_url":"https://api.github.com/repos/apiaryio/drafter/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/apiaryio/drafter/pulls/comments/35627127"},"html":{"href":"https://github.com/apiaryio/drafter/pull/67#discussion_r35627127"},"pull_request":{"href":"https://api.github.com/repos/apiaryio/drafter/pulls/67"}}},"pull_request":{"url":"https://api.github.com/repos/apiaryio/drafter/pulls/67","id":40952320,"html_url":"https://github.com/apiaryio/drafter/pull/67","diff_url":"https://github.com/apiaryio/drafter/pull/67.diff","patch_url":"https://github.com/apiaryio/drafter/pull/67.patch","issue_url":"https://api.github.com/repos/apiaryio/drafter/issues/67","number":67,"state":"open","locked":false,"title":"Boutique samples and defaults","user":{"login":"klokane","id":489973,"avatar_url":"https://avatars.githubusercontent.com/u/489973?v=3","gravatar_id":"","url":"https://api.github.com/users/klokane","html_url":"https://github.com/klokane","followers_url":"https://api.github.com/users/klokane/followers","following_url":"https://api.github.com/users/klokane/following{/other_user}","gists_url":"https://api.github.com/users/klokane/gists{/gist_id}","starred_url":"https://api.github.com/users/klokane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klokane/subscriptions","organizations_url":"https://api.github.com/users/klokane/orgs","repos_url":"https://api.github.com/users/klokane/repos","events_url":"https://api.github.com/users/klokane/events{/privacy}","received_events_url":"https://api.github.com/users/klokane/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-27T21:35:56Z","updated_at":"2015-07-28T08:59:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"359ae17131655970e13b17ea5943aa3be50fa7d6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apiaryio/drafter/pulls/67/commits","review_comments_url":"https://api.github.com/repos/apiaryio/drafter/pulls/67/comments","review_comment_url":"https://api.github.com/repos/apiaryio/drafter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apiaryio/drafter/issues/67/comments","statuses_url":"https://api.github.com/repos/apiaryio/drafter/statuses/01e737913ab899597079c3b7b55323cbeae2884f","head":{"label":"apiaryio:klokane/boutique-samples-and-defaults","ref":"klokane/boutique-samples-and-defaults","sha":"01e737913ab899597079c3b7b55323cbeae2884f","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":30541396,"name":"drafter","full_name":"apiaryio/drafter","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/drafter","description":"Snow Crash parser harness","fork":false,"url":"https://api.github.com/repos/apiaryio/drafter","forks_url":"https://api.github.com/repos/apiaryio/drafter/forks","keys_url":"https://api.github.com/repos/apiaryio/drafter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/drafter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/drafter/teams","hooks_url":"https://api.github.com/repos/apiaryio/drafter/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/drafter/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/drafter/events","assignees_url":"https://api.github.com/repos/apiaryio/drafter/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/drafter/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/drafter/tags","blobs_url":"https://api.github.com/repos/apiaryio/drafter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/drafter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/drafter/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/drafter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/drafter/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/drafter/languages","stargazers_url":"https://api.github.com/repos/apiaryio/drafter/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/drafter/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/drafter/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/drafter/subscription","commits_url":"https://api.github.com/repos/apiaryio/drafter/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/drafter/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/drafter/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/drafter/issues/comments{/number}","contents_url":"https://api.github.com/repos/apiaryio/drafter/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/drafter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/drafter/merges","archive_url":"https://api.github.com/repos/apiaryio/drafter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/drafter/downloads","issues_url":"https://api.github.com/repos/apiaryio/drafter/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/drafter/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/drafter/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/drafter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/drafter/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/drafter/releases{/id}","created_at":"2015-02-09T15:05:57Z","updated_at":"2015-07-27T15:24:21Z","pushed_at":"2015-07-28T07:18:19Z","git_url":"git://github.com/apiaryio/drafter.git","ssh_url":"git@github.com:apiaryio/drafter.git","clone_url":"https://github.com/apiaryio/drafter.git","svn_url":"https://github.com/apiaryio/drafter","homepage":"","size":1620,"stargazers_count":43,"watchers_count":43,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":12,"forks":9,"open_issues":12,"watchers":43,"default_branch":"master"}},"base":{"label":"apiaryio:klokane/fix-refract-mson","ref":"klokane/fix-refract-mson","sha":"8f86bfbbd4e3330507d449a505f5cff7fd052113","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":30541396,"name":"drafter","full_name":"apiaryio/drafter","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/drafter","description":"Snow Crash parser harness","fork":false,"url":"https://api.github.com/repos/apiaryio/drafter","forks_url":"https://api.github.com/repos/apiaryio/drafter/forks","keys_url":"https://api.github.com/repos/apiaryio/drafter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/drafter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/drafter/teams","hooks_url":"https://api.github.com/repos/apiaryio/drafter/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/drafter/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/drafter/events","assignees_url":"https://api.github.com/repos/apiaryio/drafter/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/drafter/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/drafter/tags","blobs_url":"https://api.github.com/repos/apiaryio/drafter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/drafter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/drafter/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/drafter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/drafter/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/drafter/languages","stargazers_url":"https://api.github.com/repos/apiaryio/drafter/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/drafter/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/drafter/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/drafter/subscription","commits_url":"https://api.github.com/repos/apiaryio/drafter/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/drafter/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/drafter/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/drafter/issues/comments{/number}","contents_url":"https://api.github.com/repos/apiaryio/drafter/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/drafter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/drafter/merges","archive_url":"https://api.github.com/repos/apiaryio/drafter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/drafter/downloads","issues_url":"https://api.github.com/repos/apiaryio/drafter/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/drafter/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/drafter/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/drafter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/drafter/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/drafter/releases{/id}","created_at":"2015-02-09T15:05:57Z","updated_at":"2015-07-27T15:24:21Z","pushed_at":"2015-07-28T07:18:19Z","git_url":"git://github.com/apiaryio/drafter.git","ssh_url":"git@github.com:apiaryio/drafter.git","clone_url":"https://github.com/apiaryio/drafter.git","svn_url":"https://github.com/apiaryio/drafter","homepage":"","size":1620,"stargazers_count":43,"watchers_count":43,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":12,"forks":9,"open_issues":12,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apiaryio/drafter/pulls/67"},"html":{"href":"https://github.com/apiaryio/drafter/pull/67"},"issue":{"href":"https://api.github.com/repos/apiaryio/drafter/issues/67"},"comments":{"href":"https://api.github.com/repos/apiaryio/drafter/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/apiaryio/drafter/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/apiaryio/drafter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apiaryio/drafter/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/apiaryio/drafter/statuses/01e737913ab899597079c3b7b55323cbeae2884f"}}}}