{"action":"created","comment":{"url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/pulls/comments/234161881","pull_request_review_id":175703686,"id":234161881,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDE2MTg4MQ==","diff_hunk":"@@ -0,0 +1,55 @@\n+import React, { Component } from 'react';\n+const OpenAPISampler = require('openapi-sampler');\n+\n+import { Header, H2, H3, H4, HeaderParagraph, TableColumn, Markdown } from '../../components';\n+\n+import { Map, Parameter, Schema } from '../../common';\n+\n+import { Parameters, ParametersHeader, Parameter as ParameterWrapper, ParameterHeader } from './styled';\n+\n+import SchemaComponent from '../Schemas/Schema';\n+\n+export interface ParametersProps {\n+  parameters?: Parameter[],\n+  hideTitle?: boolean,\n+}\n+\n+class ParametersComponent extends Component<ParametersProps> {\n+  private renderParameters() {\n+    const { parameters } = this.props;\n+\n+    if (parameters) {\n+      return parameters.map((param, index) => (\n+        <ParameterWrapper key={index}>\n+          {param.name || param.description ?\n+            <ParameterHeader>\n+              {param.name ? <H4>{param.name}</H4> : null}\n+              {param.description ? <Markdown>{param.description}</Markdown> : null}\n+            </ParameterHeader>\n+          : null}\n+          <SchemaComponent name={param.name ? param.name : \"\"} schema={param.schema} hideTitle={true} />\n+        </ParameterWrapper>\n+      ))\n+    }\n+    return null;\n+  }\n+\n+  public render() {\n+    const { parameters, hideTitle } = this.props;\n+\n+    return (\n+      parameters ?","path":"src/containers/Topics/Parameters.tsx","position":41,"original_position":41,"commit_id":"217d8281dc16b59bf35f3bd651974394540e5972","original_commit_id":"217d8281dc16b59bf35f3bd651974394540e5972","user":{"login":"pkosiec","id":7155799,"node_id":"MDQ6VXNlcjcxNTU3OTk=","avatar_url":"https://avatars2.githubusercontent.com/u/7155799?v=4","gravatar_id":"","url":"https://api.github.com/users/pkosiec","html_url":"https://github.com/pkosiec","followers_url":"https://api.github.com/users/pkosiec/followers","following_url":"https://api.github.com/users/pkosiec/following{/other_user}","gists_url":"https://api.github.com/users/pkosiec/gists{/gist_id}","starred_url":"https://api.github.com/users/pkosiec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkosiec/subscriptions","organizations_url":"https://api.github.com/users/pkosiec/orgs","repos_url":"https://api.github.com/users/pkosiec/repos","events_url":"https://api.github.com/users/pkosiec/events{/privacy}","received_events_url":"https://api.github.com/users/pkosiec/received_events","type":"User","site_admin":false},"body":"```\r\nif (!parameters) {\r\nreturn null;\r\n}\r\n\r\nreturn <Parameters>...\r\n```","created_at":"2018-11-16T10:44:52Z","updated_at":"2018-11-16T10:47:51Z","html_url":"https://github.com/kyma-incubator/asyncapi-react/pull/1#discussion_r234161881","pull_request_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/pulls/1","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/kyma-incubator/asyncapi-react/pulls/comments/234161881"},"html":{"href":"https://github.com/kyma-incubator/asyncapi-react/pull/1#discussion_r234161881"},"pull_request":{"href":"https://api.github.com/repos/kyma-incubator/asyncapi-react/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/pulls/1","id":231453457,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxNDUzNDU3","html_url":"https://github.com/kyma-incubator/asyncapi-react/pull/1","diff_url":"https://github.com/kyma-incubator/asyncapi-react/pull/1.diff","patch_url":"https://github.com/kyma-incubator/asyncapi-react/pull/1.patch","issue_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/issues/1","number":1,"state":"open","locked":false,"title":"Add AsyncApi react component","user":{"login":"magicmatatjahu","id":20404945,"node_id":"MDQ6VXNlcjIwNDA0OTQ1","avatar_url":"https://avatars2.githubusercontent.com/u/20404945?v=4","gravatar_id":"","url":"https://api.github.com/users/magicmatatjahu","html_url":"https://github.com/magicmatatjahu","followers_url":"https://api.github.com/users/magicmatatjahu/followers","following_url":"https://api.github.com/users/magicmatatjahu/following{/other_user}","gists_url":"https://api.github.com/users/magicmatatjahu/gists{/gist_id}","starred_url":"https://api.github.com/users/magicmatatjahu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicmatatjahu/subscriptions","organizations_url":"https://api.github.com/users/magicmatatjahu/orgs","repos_url":"https://api.github.com/users/magicmatatjahu/repos","events_url":"https://api.github.com/users/magicmatatjahu/events{/privacy}","received_events_url":"https://api.github.com/users/magicmatatjahu/received_events","type":"User","site_admin":false},"body":"- Add AsyncApi react component ","created_at":"2018-11-16T08:40:08Z","updated_at":"2018-11-16T10:47:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41fe14f4823fe9e7397ba114b692a328294ec4f4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/pulls/1/commits","review_comments_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/pulls/1/comments","review_comment_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/issues/1/comments","statuses_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/statuses/217d8281dc16b59bf35f3bd651974394540e5972","head":{"label":"magicmatatjahu:master","ref":"master","sha":"217d8281dc16b59bf35f3bd651974394540e5972","user":{"login":"magicmatatjahu","id":20404945,"node_id":"MDQ6VXNlcjIwNDA0OTQ1","avatar_url":"https://avatars2.githubusercontent.com/u/20404945?v=4","gravatar_id":"","url":"https://api.github.com/users/magicmatatjahu","html_url":"https://github.com/magicmatatjahu","followers_url":"https://api.github.com/users/magicmatatjahu/followers","following_url":"https://api.github.com/users/magicmatatjahu/following{/other_user}","gists_url":"https://api.github.com/users/magicmatatjahu/gists{/gist_id}","starred_url":"https://api.github.com/users/magicmatatjahu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicmatatjahu/subscriptions","organizations_url":"https://api.github.com/users/magicmatatjahu/orgs","repos_url":"https://api.github.com/users/magicmatatjahu/repos","events_url":"https://api.github.com/users/magicmatatjahu/events{/privacy}","received_events_url":"https://api.github.com/users/magicmatatjahu/received_events","type":"User","site_admin":false},"repo":{"id":156698254,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY2OTgyNTQ=","name":"asyncapi-react","full_name":"magicmatatjahu/asyncapi-react","private":false,"owner":{"login":"magicmatatjahu","id":20404945,"node_id":"MDQ6VXNlcjIwNDA0OTQ1","avatar_url":"https://avatars2.githubusercontent.com/u/20404945?v=4","gravatar_id":"","url":"https://api.github.com/users/magicmatatjahu","html_url":"https://github.com/magicmatatjahu","followers_url":"https://api.github.com/users/magicmatatjahu/followers","following_url":"https://api.github.com/users/magicmatatjahu/following{/other_user}","gists_url":"https://api.github.com/users/magicmatatjahu/gists{/gist_id}","starred_url":"https://api.github.com/users/magicmatatjahu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicmatatjahu/subscriptions","organizations_url":"https://api.github.com/users/magicmatatjahu/orgs","repos_url":"https://api.github.com/users/magicmatatjahu/repos","events_url":"https://api.github.com/users/magicmatatjahu/events{/privacy}","received_events_url":"https://api.github.com/users/magicmatatjahu/received_events","type":"User","site_admin":false},"html_url":"https://github.com/magicmatatjahu/asyncapi-react","description":"AsyncAPI React Component","fork":true,"url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react","forks_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/forks","keys_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/teams","hooks_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/hooks","issue_events_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/issues/events{/number}","events_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/events","assignees_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/assignees{/user}","branches_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/branches{/branch}","tags_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/tags","blobs_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/statuses/{sha}","languages_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/languages","stargazers_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/stargazers","contributors_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/contributors","subscribers_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/subscribers","subscription_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/subscription","commits_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/contents/{+path}","compare_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/merges","archive_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/downloads","issues_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/issues{/number}","pulls_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/pulls{/number}","milestones_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/milestones{/number}","notifications_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/labels{/name}","releases_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/releases{/id}","deployments_url":"https://api.github.com/repos/magicmatatjahu/asyncapi-react/deployments","created_at":"2018-11-08T11:42:20Z","updated_at":"2018-11-16T08:32:55Z","pushed_at":"2018-11-16T08:32:54Z","git_url":"git://github.com/magicmatatjahu/asyncapi-react.git","ssh_url":"git@github.com:magicmatatjahu/asyncapi-react.git","clone_url":"https://github.com/magicmatatjahu/asyncapi-react.git","svn_url":"https://github.com/magicmatatjahu/asyncapi-react","homepage":null,"size":1017,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kyma-incubator:master","ref":"master","sha":"e210c959b8ab927f71e562f62a900b969cff4a53","user":{"login":"kyma-incubator","id":40658079,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNjU4MDc5","avatar_url":"https://avatars3.githubusercontent.com/u/40658079?v=4","gravatar_id":"","url":"https://api.github.com/users/kyma-incubator","html_url":"https://github.com/kyma-incubator","followers_url":"https://api.github.com/users/kyma-incubator/followers","following_url":"https://api.github.com/users/kyma-incubator/following{/other_user}","gists_url":"https://api.github.com/users/kyma-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/kyma-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyma-incubator/subscriptions","organizations_url":"https://api.github.com/users/kyma-incubator/orgs","repos_url":"https://api.github.com/users/kyma-incubator/repos","events_url":"https://api.github.com/users/kyma-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/kyma-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":156510564,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY1MTA1NjQ=","name":"asyncapi-react","full_name":"kyma-incubator/asyncapi-react","private":false,"owner":{"login":"kyma-incubator","id":40658079,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNjU4MDc5","avatar_url":"https://avatars3.githubusercontent.com/u/40658079?v=4","gravatar_id":"","url":"https://api.github.com/users/kyma-incubator","html_url":"https://github.com/kyma-incubator","followers_url":"https://api.github.com/users/kyma-incubator/followers","following_url":"https://api.github.com/users/kyma-incubator/following{/other_user}","gists_url":"https://api.github.com/users/kyma-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/kyma-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyma-incubator/subscriptions","organizations_url":"https://api.github.com/users/kyma-incubator/orgs","repos_url":"https://api.github.com/users/kyma-incubator/repos","events_url":"https://api.github.com/users/kyma-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/kyma-incubator/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kyma-incubator/asyncapi-react","description":"AsyncAPI React Component","fork":false,"url":"https://api.github.com/repos/kyma-incubator/asyncapi-react","forks_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/forks","keys_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/teams","hooks_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/hooks","issue_events_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/issues/events{/number}","events_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/events","assignees_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/assignees{/user}","branches_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/branches{/branch}","tags_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/tags","blobs_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/statuses/{sha}","languages_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/languages","stargazers_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/stargazers","contributors_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/contributors","subscribers_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/subscribers","subscription_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/subscription","commits_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/contents/{+path}","compare_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/merges","archive_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/downloads","issues_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/issues{/number}","pulls_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/pulls{/number}","milestones_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/milestones{/number}","notifications_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/labels{/name}","releases_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/releases{/id}","deployments_url":"https://api.github.com/repos/kyma-incubator/asyncapi-react/deployments","created_at":"2018-11-07T07:59:27Z","updated_at":"2018-11-08T11:42:14Z","pushed_at":"2018-11-16T08:40:09Z","git_url":"git://github.com/kyma-incubator/asyncapi-react.git","ssh_url":"git@github.com:kyma-incubator/asyncapi-react.git","clone_url":"https://github.com/kyma-incubator/asyncapi-react.git","svn_url":"https://github.com/kyma-incubator/asyncapi-react","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kyma-incubator/asyncapi-react/pulls/1"},"html":{"href":"https://github.com/kyma-incubator/asyncapi-react/pull/1"},"issue":{"href":"https://api.github.com/repos/kyma-incubator/asyncapi-react/issues/1"},"comments":{"href":"https://api.github.com/repos/kyma-incubator/asyncapi-react/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/kyma-incubator/asyncapi-react/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/kyma-incubator/asyncapi-react/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kyma-incubator/asyncapi-react/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/kyma-incubator/asyncapi-react/statuses/217d8281dc16b59bf35f3bd651974394540e5972"}},"author_association":"NONE"}}
{"actor":{"display_login":"pkosiec"}}