{"action":"created","comment":{"url":"https://api.github.com/repos/econchick/ramlfications/pulls/comments/51115599","id":51115599,"diff_hunk":"@@ -0,0 +1,67 @@\n+# -*- coding: utf-8 -*-\n+# Copyright (c) 2015 Spotify AB\n+\n+from __future__ import absolute_import, division, print_function\n+import attr\n+import copy\n+from six import MAXSIZE\n+from six import iteritems\n+\n+from ..errors import UnknownTypeError\n+from ..parameters import Content\n+\n+__type_registry = {}\n+\n+def type_class(klass):\n+    if klass.type is not None:\n+        __type_registry[klass.type] = klass\n+    return klass","path":"ramlfications/parser/types.py","position":18,"original_position":18,"commit_id":"134265aa96fabcafb6030ce5ec47045e376cf5a1","original_commit_id":"134265aa96fabcafb6030ce5ec47045e376cf5a1","user":{"login":"tardyp","id":109859,"avatar_url":"https://avatars.githubusercontent.com/u/109859?v=3","gravatar_id":"","url":"https://api.github.com/users/tardyp","html_url":"https://github.com/tardyp","followers_url":"https://api.github.com/users/tardyp/followers","following_url":"https://api.github.com/users/tardyp/following{/other_user}","gists_url":"https://api.github.com/users/tardyp/gists{/gist_id}","starred_url":"https://api.github.com/users/tardyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tardyp/subscriptions","organizations_url":"https://api.github.com/users/tardyp/orgs","repos_url":"https://api.github.com/users/tardyp/repos","events_url":"https://api.github.com/users/tardyp/events{/privacy}","received_events_url":"https://api.github.com/users/tardyp/received_events","type":"User","site_admin":false},"body":"its the registry design pattern which is used in twisted/zope interfaces in a couple of places.","created_at":"2016-01-28T12:26:51Z","updated_at":"2016-01-28T12:26:51Z","html_url":"https://github.com/econchick/ramlfications/pull/3#discussion_r51115599","pull_request_url":"https://api.github.com/repos/econchick/ramlfications/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/econchick/ramlfications/pulls/comments/51115599"},"html":{"href":"https://github.com/econchick/ramlfications/pull/3#discussion_r51115599"},"pull_request":{"href":"https://api.github.com/repos/econchick/ramlfications/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/econchick/ramlfications/pulls/3","id":57398725,"html_url":"https://github.com/econchick/ramlfications/pull/3","diff_url":"https://github.com/econchick/ramlfications/pull/3.diff","patch_url":"https://github.com/econchick/ramlfications/pull/3.patch","issue_url":"https://api.github.com/repos/econchick/ramlfications/issues/3","number":3,"state":"open","locked":false,"title":"Objecttype","user":{"login":"tardyp","id":109859,"avatar_url":"https://avatars.githubusercontent.com/u/109859?v=3","gravatar_id":"","url":"https://api.github.com/users/tardyp","html_url":"https://github.com/tardyp","followers_url":"https://api.github.com/users/tardyp/followers","following_url":"https://api.github.com/users/tardyp/following{/other_user}","gists_url":"https://api.github.com/users/tardyp/gists{/gist_id}","starred_url":"https://api.github.com/users/tardyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tardyp/subscriptions","organizations_url":"https://api.github.com/users/tardyp/orgs","repos_url":"https://api.github.com/users/tardyp/repos","events_url":"https://api.github.com/users/tardyp/events{/privacy}","received_events_url":"https://api.github.com/users/tardyp/received_events","type":"User","site_admin":false},"body":"This is first baby step to implement the raml type system:\r\n\r\nType system base framework, which for now only supports the object type.\r\n\r\ndocumentation is describing how I think it should look like.\r\n\r\nI documented the validate() function, which I did not implement yet.\r\nLet me know if you like how it works.\r\n","created_at":"2016-01-27T18:04:26Z","updated_at":"2016-01-28T12:26:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e64d42cbf0abcca5282ba9f0ee985a80157bf38","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/econchick/ramlfications/pulls/3/commits","review_comments_url":"https://api.github.com/repos/econchick/ramlfications/pulls/3/comments","review_comment_url":"https://api.github.com/repos/econchick/ramlfications/pulls/comments{/number}","comments_url":"https://api.github.com/repos/econchick/ramlfications/issues/3/comments","statuses_url":"https://api.github.com/repos/econchick/ramlfications/statuses/134265aa96fabcafb6030ce5ec47045e376cf5a1","head":{"label":"tardyp:objecttype","ref":"objecttype","sha":"134265aa96fabcafb6030ce5ec47045e376cf5a1","user":{"login":"tardyp","id":109859,"avatar_url":"https://avatars.githubusercontent.com/u/109859?v=3","gravatar_id":"","url":"https://api.github.com/users/tardyp","html_url":"https://github.com/tardyp","followers_url":"https://api.github.com/users/tardyp/followers","following_url":"https://api.github.com/users/tardyp/following{/other_user}","gists_url":"https://api.github.com/users/tardyp/gists{/gist_id}","starred_url":"https://api.github.com/users/tardyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tardyp/subscriptions","organizations_url":"https://api.github.com/users/tardyp/orgs","repos_url":"https://api.github.com/users/tardyp/repos","events_url":"https://api.github.com/users/tardyp/events{/privacy}","received_events_url":"https://api.github.com/users/tardyp/received_events","type":"User","site_admin":false},"repo":{"id":49712338,"name":"ramlfications","full_name":"tardyp/ramlfications","owner":{"login":"tardyp","id":109859,"avatar_url":"https://avatars.githubusercontent.com/u/109859?v=3","gravatar_id":"","url":"https://api.github.com/users/tardyp","html_url":"https://github.com/tardyp","followers_url":"https://api.github.com/users/tardyp/followers","following_url":"https://api.github.com/users/tardyp/following{/other_user}","gists_url":"https://api.github.com/users/tardyp/gists{/gist_id}","starred_url":"https://api.github.com/users/tardyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tardyp/subscriptions","organizations_url":"https://api.github.com/users/tardyp/orgs","repos_url":"https://api.github.com/users/tardyp/repos","events_url":"https://api.github.com/users/tardyp/events{/privacy}","received_events_url":"https://api.github.com/users/tardyp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tardyp/ramlfications","description":"Python parser for RAML","fork":true,"url":"https://api.github.com/repos/tardyp/ramlfications","forks_url":"https://api.github.com/repos/tardyp/ramlfications/forks","keys_url":"https://api.github.com/repos/tardyp/ramlfications/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tardyp/ramlfications/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tardyp/ramlfications/teams","hooks_url":"https://api.github.com/repos/tardyp/ramlfications/hooks","issue_events_url":"https://api.github.com/repos/tardyp/ramlfications/issues/events{/number}","events_url":"https://api.github.com/repos/tardyp/ramlfications/events","assignees_url":"https://api.github.com/repos/tardyp/ramlfications/assignees{/user}","branches_url":"https://api.github.com/repos/tardyp/ramlfications/branches{/branch}","tags_url":"https://api.github.com/repos/tardyp/ramlfications/tags","blobs_url":"https://api.github.com/repos/tardyp/ramlfications/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tardyp/ramlfications/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tardyp/ramlfications/git/refs{/sha}","trees_url":"https://api.github.com/repos/tardyp/ramlfications/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tardyp/ramlfications/statuses/{sha}","languages_url":"https://api.github.com/repos/tardyp/ramlfications/languages","stargazers_url":"https://api.github.com/repos/tardyp/ramlfications/stargazers","contributors_url":"https://api.github.com/repos/tardyp/ramlfications/contributors","subscribers_url":"https://api.github.com/repos/tardyp/ramlfications/subscribers","subscription_url":"https://api.github.com/repos/tardyp/ramlfications/subscription","commits_url":"https://api.github.com/repos/tardyp/ramlfications/commits{/sha}","git_commits_url":"https://api.github.com/repos/tardyp/ramlfications/git/commits{/sha}","comments_url":"https://api.github.com/repos/tardyp/ramlfications/comments{/number}","issue_comment_url":"https://api.github.com/repos/tardyp/ramlfications/issues/comments{/number}","contents_url":"https://api.github.com/repos/tardyp/ramlfications/contents/{+path}","compare_url":"https://api.github.com/repos/tardyp/ramlfications/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tardyp/ramlfications/merges","archive_url":"https://api.github.com/repos/tardyp/ramlfications/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tardyp/ramlfications/downloads","issues_url":"https://api.github.com/repos/tardyp/ramlfications/issues{/number}","pulls_url":"https://api.github.com/repos/tardyp/ramlfications/pulls{/number}","milestones_url":"https://api.github.com/repos/tardyp/ramlfications/milestones{/number}","notifications_url":"https://api.github.com/repos/tardyp/ramlfications/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tardyp/ramlfications/labels{/name}","releases_url":"https://api.github.com/repos/tardyp/ramlfications/releases{/id}","deployments_url":"https://api.github.com/repos/tardyp/ramlfications/deployments","created_at":"2016-01-15T10:24:48Z","updated_at":"2016-01-15T10:24:49Z","pushed_at":"2016-01-27T17:58:41Z","git_url":"git://github.com/tardyp/ramlfications.git","ssh_url":"git@github.com:tardyp/ramlfications.git","clone_url":"https://github.com/tardyp/ramlfications.git","svn_url":"https://github.com/tardyp/ramlfications","homepage":"https://ramlfications.readthedocs.org","size":2015,"stargazers_count":0,"watchers_count":0,"language":"RAML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"econchick:wip-general-code-cleanup","ref":"wip-general-code-cleanup","sha":"fef71ec8a956861cbf6a47dde74e8c99de45b507","user":{"login":"econchick","id":1191069,"avatar_url":"https://avatars.githubusercontent.com/u/1191069?v=3","gravatar_id":"","url":"https://api.github.com/users/econchick","html_url":"https://github.com/econchick","followers_url":"https://api.github.com/users/econchick/followers","following_url":"https://api.github.com/users/econchick/following{/other_user}","gists_url":"https://api.github.com/users/econchick/gists{/gist_id}","starred_url":"https://api.github.com/users/econchick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/econchick/subscriptions","organizations_url":"https://api.github.com/users/econchick/orgs","repos_url":"https://api.github.com/users/econchick/repos","events_url":"https://api.github.com/users/econchick/events{/privacy}","received_events_url":"https://api.github.com/users/econchick/received_events","type":"User","site_admin":false},"repo":{"id":34156370,"name":"ramlfications","full_name":"econchick/ramlfications","owner":{"login":"econchick","id":1191069,"avatar_url":"https://avatars.githubusercontent.com/u/1191069?v=3","gravatar_id":"","url":"https://api.github.com/users/econchick","html_url":"https://github.com/econchick","followers_url":"https://api.github.com/users/econchick/followers","following_url":"https://api.github.com/users/econchick/following{/other_user}","gists_url":"https://api.github.com/users/econchick/gists{/gist_id}","starred_url":"https://api.github.com/users/econchick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/econchick/subscriptions","organizations_url":"https://api.github.com/users/econchick/orgs","repos_url":"https://api.github.com/users/econchick/repos","events_url":"https://api.github.com/users/econchick/events{/privacy}","received_events_url":"https://api.github.com/users/econchick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/econchick/ramlfications","description":"Python parser for RAML","fork":true,"url":"https://api.github.com/repos/econchick/ramlfications","forks_url":"https://api.github.com/repos/econchick/ramlfications/forks","keys_url":"https://api.github.com/repos/econchick/ramlfications/keys{/key_id}","collaborators_url":"https://api.github.com/repos/econchick/ramlfications/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/econchick/ramlfications/teams","hooks_url":"https://api.github.com/repos/econchick/ramlfications/hooks","issue_events_url":"https://api.github.com/repos/econchick/ramlfications/issues/events{/number}","events_url":"https://api.github.com/repos/econchick/ramlfications/events","assignees_url":"https://api.github.com/repos/econchick/ramlfications/assignees{/user}","branches_url":"https://api.github.com/repos/econchick/ramlfications/branches{/branch}","tags_url":"https://api.github.com/repos/econchick/ramlfications/tags","blobs_url":"https://api.github.com/repos/econchick/ramlfications/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/econchick/ramlfications/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/econchick/ramlfications/git/refs{/sha}","trees_url":"https://api.github.com/repos/econchick/ramlfications/git/trees{/sha}","statuses_url":"https://api.github.com/repos/econchick/ramlfications/statuses/{sha}","languages_url":"https://api.github.com/repos/econchick/ramlfications/languages","stargazers_url":"https://api.github.com/repos/econchick/ramlfications/stargazers","contributors_url":"https://api.github.com/repos/econchick/ramlfications/contributors","subscribers_url":"https://api.github.com/repos/econchick/ramlfications/subscribers","subscription_url":"https://api.github.com/repos/econchick/ramlfications/subscription","commits_url":"https://api.github.com/repos/econchick/ramlfications/commits{/sha}","git_commits_url":"https://api.github.com/repos/econchick/ramlfications/git/commits{/sha}","comments_url":"https://api.github.com/repos/econchick/ramlfications/comments{/number}","issue_comment_url":"https://api.github.com/repos/econchick/ramlfications/issues/comments{/number}","contents_url":"https://api.github.com/repos/econchick/ramlfications/contents/{+path}","compare_url":"https://api.github.com/repos/econchick/ramlfications/compare/{base}...{head}","merges_url":"https://api.github.com/repos/econchick/ramlfications/merges","archive_url":"https://api.github.com/repos/econchick/ramlfications/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/econchick/ramlfications/downloads","issues_url":"https://api.github.com/repos/econchick/ramlfications/issues{/number}","pulls_url":"https://api.github.com/repos/econchick/ramlfications/pulls{/number}","milestones_url":"https://api.github.com/repos/econchick/ramlfications/milestones{/number}","notifications_url":"https://api.github.com/repos/econchick/ramlfications/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/econchick/ramlfications/labels{/name}","releases_url":"https://api.github.com/repos/econchick/ramlfications/releases{/id}","deployments_url":"https://api.github.com/repos/econchick/ramlfications/deployments","created_at":"2015-04-18T07:10:39Z","updated_at":"2015-12-30T18:08:19Z","pushed_at":"2016-01-27T21:05:55Z","git_url":"git://github.com/econchick/ramlfications.git","ssh_url":"git@github.com:econchick/ramlfications.git","clone_url":"https://github.com/econchick/ramlfications.git","svn_url":"https://github.com/econchick/ramlfications","homepage":null,"size":2086,"stargazers_count":0,"watchers_count":0,"language":"RAML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/econchick/ramlfications/pulls/3"},"html":{"href":"https://github.com/econchick/ramlfications/pull/3"},"issue":{"href":"https://api.github.com/repos/econchick/ramlfications/issues/3"},"comments":{"href":"https://api.github.com/repos/econchick/ramlfications/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/econchick/ramlfications/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/econchick/ramlfications/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/econchick/ramlfications/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/econchick/ramlfications/statuses/134265aa96fabcafb6030ce5ec47045e376cf5a1"}}}}