{"action":"opened","number":352,"pull_request":{"url":"https://api.github.com/repos/jdorn/json-editor/pulls/352","id":29748828,"html_url":"https://github.com/jdorn/json-editor/pull/352","diff_url":"https://github.com/jdorn/json-editor/pull/352.diff","patch_url":"https://github.com/jdorn/json-editor/pull/352.patch","issue_url":"https://api.github.com/repos/jdorn/json-editor/issues/352","number":352,"state":"open","locked":false,"title":"Type check element argument","user":{"login":"mohsen1","id":543633,"avatar_url":"https://avatars.githubusercontent.com/u/543633?v=3","gravatar_id":"","url":"https://api.github.com/users/mohsen1","html_url":"https://github.com/mohsen1","followers_url":"https://api.github.com/users/mohsen1/followers","following_url":"https://api.github.com/users/mohsen1/following{/other_user}","gists_url":"https://api.github.com/users/mohsen1/gists{/gist_id}","starred_url":"https://api.github.com/users/mohsen1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohsen1/subscriptions","organizations_url":"https://api.github.com/users/mohsen1/orgs","repos_url":"https://api.github.com/users/mohsen1/repos","events_url":"https://api.github.com/users/mohsen1/events{/privacy}","received_events_url":"https://api.github.com/users/mohsen1/received_events","type":"User","site_admin":false},"body":"This took me a long time to figure out why it's not working. This should help in cases like that.\r\nIf element argument is not an instance of `Element` the program should fail fast and acknowledge the user.","created_at":"2015-02-21T04:45:14Z","updated_at":"2015-02-21T04:45:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jdorn/json-editor/pulls/352/commits","review_comments_url":"https://api.github.com/repos/jdorn/json-editor/pulls/352/comments","review_comment_url":"https://api.github.com/repos/jdorn/json-editor/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jdorn/json-editor/issues/352/comments","statuses_url":"https://api.github.com/repos/jdorn/json-editor/statuses/b238f4eed3fd432f3ce94aebb924b86d42f3c014","head":{"label":"mohsen1:patch-1","ref":"patch-1","sha":"b238f4eed3fd432f3ce94aebb924b86d42f3c014","user":{"login":"mohsen1","id":543633,"avatar_url":"https://avatars.githubusercontent.com/u/543633?v=3","gravatar_id":"","url":"https://api.github.com/users/mohsen1","html_url":"https://github.com/mohsen1","followers_url":"https://api.github.com/users/mohsen1/followers","following_url":"https://api.github.com/users/mohsen1/following{/other_user}","gists_url":"https://api.github.com/users/mohsen1/gists{/gist_id}","starred_url":"https://api.github.com/users/mohsen1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohsen1/subscriptions","organizations_url":"https://api.github.com/users/mohsen1/orgs","repos_url":"https://api.github.com/users/mohsen1/repos","events_url":"https://api.github.com/users/mohsen1/events{/privacy}","received_events_url":"https://api.github.com/users/mohsen1/received_events","type":"User","site_admin":false},"repo":{"id":31115508,"name":"json-editor","full_name":"mohsen1/json-editor","owner":{"login":"mohsen1","id":543633,"avatar_url":"https://avatars.githubusercontent.com/u/543633?v=3","gravatar_id":"","url":"https://api.github.com/users/mohsen1","html_url":"https://github.com/mohsen1","followers_url":"https://api.github.com/users/mohsen1/followers","following_url":"https://api.github.com/users/mohsen1/following{/other_user}","gists_url":"https://api.github.com/users/mohsen1/gists{/gist_id}","starred_url":"https://api.github.com/users/mohsen1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohsen1/subscriptions","organizations_url":"https://api.github.com/users/mohsen1/orgs","repos_url":"https://api.github.com/users/mohsen1/repos","events_url":"https://api.github.com/users/mohsen1/events{/privacy}","received_events_url":"https://api.github.com/users/mohsen1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mohsen1/json-editor","description":"JSON Schema Based Editor","fork":true,"url":"https://api.github.com/repos/mohsen1/json-editor","forks_url":"https://api.github.com/repos/mohsen1/json-editor/forks","keys_url":"https://api.github.com/repos/mohsen1/json-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mohsen1/json-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mohsen1/json-editor/teams","hooks_url":"https://api.github.com/repos/mohsen1/json-editor/hooks","issue_events_url":"https://api.github.com/repos/mohsen1/json-editor/issues/events{/number}","events_url":"https://api.github.com/repos/mohsen1/json-editor/events","assignees_url":"https://api.github.com/repos/mohsen1/json-editor/assignees{/user}","branches_url":"https://api.github.com/repos/mohsen1/json-editor/branches{/branch}","tags_url":"https://api.github.com/repos/mohsen1/json-editor/tags","blobs_url":"https://api.github.com/repos/mohsen1/json-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mohsen1/json-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mohsen1/json-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mohsen1/json-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mohsen1/json-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/mohsen1/json-editor/languages","stargazers_url":"https://api.github.com/repos/mohsen1/json-editor/stargazers","contributors_url":"https://api.github.com/repos/mohsen1/json-editor/contributors","subscribers_url":"https://api.github.com/repos/mohsen1/json-editor/subscribers","subscription_url":"https://api.github.com/repos/mohsen1/json-editor/subscription","commits_url":"https://api.github.com/repos/mohsen1/json-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mohsen1/json-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mohsen1/json-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mohsen1/json-editor/issues/comments/{number}","contents_url":"https://api.github.com/repos/mohsen1/json-editor/contents/{+path}","compare_url":"https://api.github.com/repos/mohsen1/json-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mohsen1/json-editor/merges","archive_url":"https://api.github.com/repos/mohsen1/json-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mohsen1/json-editor/downloads","issues_url":"https://api.github.com/repos/mohsen1/json-editor/issues{/number}","pulls_url":"https://api.github.com/repos/mohsen1/json-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/mohsen1/json-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/mohsen1/json-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mohsen1/json-editor/labels{/name}","releases_url":"https://api.github.com/repos/mohsen1/json-editor/releases{/id}","created_at":"2015-02-21T04:41:41Z","updated_at":"2015-02-21T04:41:42Z","pushed_at":"2015-02-21T04:44:20Z","git_url":"git://github.com/mohsen1/json-editor.git","ssh_url":"git@github.com:mohsen1/json-editor.git","clone_url":"https://github.com/mohsen1/json-editor.git","svn_url":"https://github.com/mohsen1/json-editor","homepage":"","size":3568,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"jdorn:master","ref":"master","sha":"27f2e16e24bd04ef0b64e43f0d7156881542c831","user":{"login":"jdorn","id":1087514,"avatar_url":"https://avatars.githubusercontent.com/u/1087514?v=3","gravatar_id":"","url":"https://api.github.com/users/jdorn","html_url":"https://github.com/jdorn","followers_url":"https://api.github.com/users/jdorn/followers","following_url":"https://api.github.com/users/jdorn/following{/other_user}","gists_url":"https://api.github.com/users/jdorn/gists{/gist_id}","starred_url":"https://api.github.com/users/jdorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdorn/subscriptions","organizations_url":"https://api.github.com/users/jdorn/orgs","repos_url":"https://api.github.com/users/jdorn/repos","events_url":"https://api.github.com/users/jdorn/events{/privacy}","received_events_url":"https://api.github.com/users/jdorn/received_events","type":"User","site_admin":false},"repo":{"id":14673229,"name":"json-editor","full_name":"jdorn/json-editor","owner":{"login":"jdorn","id":1087514,"avatar_url":"https://avatars.githubusercontent.com/u/1087514?v=3","gravatar_id":"","url":"https://api.github.com/users/jdorn","html_url":"https://github.com/jdorn","followers_url":"https://api.github.com/users/jdorn/followers","following_url":"https://api.github.com/users/jdorn/following{/other_user}","gists_url":"https://api.github.com/users/jdorn/gists{/gist_id}","starred_url":"https://api.github.com/users/jdorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdorn/subscriptions","organizations_url":"https://api.github.com/users/jdorn/orgs","repos_url":"https://api.github.com/users/jdorn/repos","events_url":"https://api.github.com/users/jdorn/events{/privacy}","received_events_url":"https://api.github.com/users/jdorn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jdorn/json-editor","description":"JSON Schema Based Editor","fork":false,"url":"https://api.github.com/repos/jdorn/json-editor","forks_url":"https://api.github.com/repos/jdorn/json-editor/forks","keys_url":"https://api.github.com/repos/jdorn/json-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jdorn/json-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jdorn/json-editor/teams","hooks_url":"https://api.github.com/repos/jdorn/json-editor/hooks","issue_events_url":"https://api.github.com/repos/jdorn/json-editor/issues/events{/number}","events_url":"https://api.github.com/repos/jdorn/json-editor/events","assignees_url":"https://api.github.com/repos/jdorn/json-editor/assignees{/user}","branches_url":"https://api.github.com/repos/jdorn/json-editor/branches{/branch}","tags_url":"https://api.github.com/repos/jdorn/json-editor/tags","blobs_url":"https://api.github.com/repos/jdorn/json-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jdorn/json-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jdorn/json-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/jdorn/json-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jdorn/json-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/jdorn/json-editor/languages","stargazers_url":"https://api.github.com/repos/jdorn/json-editor/stargazers","contributors_url":"https://api.github.com/repos/jdorn/json-editor/contributors","subscribers_url":"https://api.github.com/repos/jdorn/json-editor/subscribers","subscription_url":"https://api.github.com/repos/jdorn/json-editor/subscription","commits_url":"https://api.github.com/repos/jdorn/json-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/jdorn/json-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/jdorn/json-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/jdorn/json-editor/issues/comments/{number}","contents_url":"https://api.github.com/repos/jdorn/json-editor/contents/{+path}","compare_url":"https://api.github.com/repos/jdorn/json-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jdorn/json-editor/merges","archive_url":"https://api.github.com/repos/jdorn/json-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jdorn/json-editor/downloads","issues_url":"https://api.github.com/repos/jdorn/json-editor/issues{/number}","pulls_url":"https://api.github.com/repos/jdorn/json-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/jdorn/json-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/jdorn/json-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jdorn/json-editor/labels{/name}","releases_url":"https://api.github.com/repos/jdorn/json-editor/releases{/id}","created_at":"2013-11-25T01:30:00Z","updated_at":"2015-02-20T22:58:41Z","pushed_at":"2015-02-02T15:49:47Z","git_url":"git://github.com/jdorn/json-editor.git","ssh_url":"git@github.com:jdorn/json-editor.git","clone_url":"https://github.com/jdorn/json-editor.git","svn_url":"https://github.com/jdorn/json-editor","homepage":"","size":3568,"stargazers_count":1360,"watchers_count":1360,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":218,"mirror_url":null,"open_issues_count":146,"forks":218,"open_issues":146,"watchers":1360,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jdorn/json-editor/pulls/352"},"html":{"href":"https://github.com/jdorn/json-editor/pull/352"},"issue":{"href":"https://api.github.com/repos/jdorn/json-editor/issues/352"},"comments":{"href":"https://api.github.com/repos/jdorn/json-editor/issues/352/comments"},"review_comments":{"href":"https://api.github.com/repos/jdorn/json-editor/pulls/352/comments"},"review_comment":{"href":"https://api.github.com/repos/jdorn/json-editor/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jdorn/json-editor/pulls/352/commits"},"statuses":{"href":"https://api.github.com/repos/jdorn/json-editor/statuses/b238f4eed3fd432f3ce94aebb924b86d42f3c014"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":0,"changed_files":1}}