{"action":"opened","number":22,"pull_request":{"url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/pulls/22","id":28094819,"html_url":"https://github.com/apiaryio/api-blueprint-ast/pull/22","diff_url":"https://github.com/apiaryio/api-blueprint-ast/pull/22.diff","patch_url":"https://github.com/apiaryio/api-blueprint-ast/pull/22.patch","issue_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/issues/22","number":22,"state":"open","locked":false,"title":"Align naming & structure with JDOM","user":{"login":"zdne","id":613617,"avatar_url":"https://avatars.githubusercontent.com/u/613617?v=3","gravatar_id":"","url":"https://api.github.com/users/zdne","html_url":"https://github.com/zdne","followers_url":"https://api.github.com/users/zdne/followers","following_url":"https://api.github.com/users/zdne/following{/other_user}","gists_url":"https://api.github.com/users/zdne/gists{/gist_id}","starred_url":"https://api.github.com/users/zdne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdne/subscriptions","organizations_url":"https://api.github.com/users/zdne/orgs","repos_url":"https://api.github.com/users/zdne/repos","events_url":"https://api.github.com/users/zdne/events{/privacy}","received_events_url":"https://api.github.com/users/zdne/received_events","type":"User","site_admin":false},"body":"For @pksunkara @kylef to review:\r\n\r\nAs we have came to a conclusion a generic element structure is needed in order to build document object models, @smizell came with the idea of \"JDOM\". In a nutshell every JSON (or HTML, XML or YAML) document can be represented by its JSON-DOM like so: \r\n\r\n```json\r\n{\r\n  \"element\": \"....\",\r\n  \"attributes\": {},\r\n  \"content\": []\r\n}\r\n```\r\n\r\nSee https://github.com/smizell/minim and https://github.com/smizell/janeml for details. It is very likely that in a near future we will move from API Blueprint AST to API Blueprint DOM based on the JDOM & Canonical API Elements SDK. We will discuss it in detail today with @kylef, and tomorrow with @pksunkara \r\n\r\nThis PR align the element concepts of previous PR with the JDOM concepts. \r\n\r\nNamely:\r\n\r\n- use `element` instead of `class` key for the type of the element\r\n- for the new element `category` follow the JDOM concept more closely and put `category` element `name` under its `attributes`\r\n\r\n","created_at":"2015-01-27T09:40:36Z","updated_at":"2015-01-27T09:40:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/pulls/22/commits","review_comments_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/pulls/22/comments","review_comment_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/pulls/comments/{number}","comments_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/issues/22/comments","statuses_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/statuses/5c1c437bd94b8cc7b7ef7c17e2c1cb7b73157f23","head":{"label":"apiaryio:zdne/jdom","ref":"zdne/jdom","sha":"5c1c437bd94b8cc7b7ef7c17e2c1cb7b73157f23","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":16068699,"name":"api-blueprint-ast","full_name":"apiaryio/api-blueprint-ast","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/api-blueprint-ast","description":"API Blueprint AST Serialization Media Types","fork":false,"url":"https://api.github.com/repos/apiaryio/api-blueprint-ast","forks_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/forks","keys_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/teams","hooks_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/events","assignees_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/tags","blobs_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/languages","stargazers_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/subscription","commits_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/issues/comments/{number}","contents_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/merges","archive_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/downloads","issues_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/releases{/id}","created_at":"2014-01-20T11:20:17Z","updated_at":"2015-01-12T03:31:31Z","pushed_at":"2015-01-27T09:30:14Z","git_url":"git://github.com/apiaryio/api-blueprint-ast.git","ssh_url":"git@github.com:apiaryio/api-blueprint-ast.git","clone_url":"https://github.com/apiaryio/api-blueprint-ast.git","svn_url":"https://github.com/apiaryio/api-blueprint-ast","homepage":null,"size":960,"stargazers_count":14,"watchers_count":14,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":14,"default_branch":"master"}},"base":{"label":"apiaryio:zdne/attributes-description","ref":"zdne/attributes-description","sha":"116df16ab93230f732c3724e5fd83b060d5453e5","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":16068699,"name":"api-blueprint-ast","full_name":"apiaryio/api-blueprint-ast","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/api-blueprint-ast","description":"API Blueprint AST Serialization Media Types","fork":false,"url":"https://api.github.com/repos/apiaryio/api-blueprint-ast","forks_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/forks","keys_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/teams","hooks_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/events","assignees_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/tags","blobs_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/languages","stargazers_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/subscription","commits_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/issues/comments/{number}","contents_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/merges","archive_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/downloads","issues_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/api-blueprint-ast/releases{/id}","created_at":"2014-01-20T11:20:17Z","updated_at":"2015-01-12T03:31:31Z","pushed_at":"2015-01-27T09:30:14Z","git_url":"git://github.com/apiaryio/api-blueprint-ast.git","ssh_url":"git@github.com:apiaryio/api-blueprint-ast.git","clone_url":"https://github.com/apiaryio/api-blueprint-ast.git","svn_url":"https://github.com/apiaryio/api-blueprint-ast","homepage":null,"size":960,"stargazers_count":14,"watchers_count":14,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apiaryio/api-blueprint-ast/pulls/22"},"html":{"href":"https://github.com/apiaryio/api-blueprint-ast/pull/22"},"issue":{"href":"https://api.github.com/repos/apiaryio/api-blueprint-ast/issues/22"},"comments":{"href":"https://api.github.com/repos/apiaryio/api-blueprint-ast/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/apiaryio/api-blueprint-ast/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/apiaryio/api-blueprint-ast/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/apiaryio/api-blueprint-ast/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/apiaryio/api-blueprint-ast/statuses/5c1c437bd94b8cc7b7ef7c17e2c1cb7b73157f23"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":22,"deletions":18,"changed_files":1}}