{"action":"created","comment":{"url":"https://api.github.com/repos/nmstate/nmstate/pulls/comments/187954867","pull_request_review_id":119831018,"id":187954867,"diff_hunk":"@@ -0,0 +1,34 @@\n+#\n+# Copyright 2018 Red Hat, Inc.\n+#\n+# This program is free software; you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation; either version 2 of the License, or\n+# (at your option) any later version.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with this program; if not, write to the Free Software\n+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n+#\n+# Refer to the README and COPYING files for full details of the license\n+#\n+from __future__ import absolute_import\n+\n+import json\n+import os\n+\n+\n+def load(schema_name):\n+    self_path = os.path.dirname(__file__)","path":"src/libnmstate/schema.py","position":27,"original_position":27,"commit_id":"d8b9aafd2c95b088d115a26adf65f480806a4cb4","original_commit_id":"d8b9aafd2c95b088d115a26adf65f480806a4cb4","user":{"login":"EdDev","id":9546119,"avatar_url":"https://avatars1.githubusercontent.com/u/9546119?v=4","gravatar_id":"","url":"https://api.github.com/users/EdDev","html_url":"https://github.com/EdDev","followers_url":"https://api.github.com/users/EdDev/followers","following_url":"https://api.github.com/users/EdDev/following{/other_user}","gists_url":"https://api.github.com/users/EdDev/gists{/gist_id}","starred_url":"https://api.github.com/users/EdDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdDev/subscriptions","organizations_url":"https://api.github.com/users/EdDev/orgs","repos_url":"https://api.github.com/users/EdDev/repos","events_url":"https://api.github.com/users/EdDev/events{/privacy}","received_events_url":"https://api.github.com/users/EdDev/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2018-05-14T13:36:47Z","updated_at":"2018-05-14T13:53:26Z","html_url":"https://github.com/nmstate/nmstate/pull/5#discussion_r187954867","pull_request_url":"https://api.github.com/repos/nmstate/nmstate/pulls/5","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/nmstate/nmstate/pulls/comments/187954867"},"html":{"href":"https://github.com/nmstate/nmstate/pull/5#discussion_r187954867"},"pull_request":{"href":"https://api.github.com/repos/nmstate/nmstate/pulls/5"}},"in_reply_to_id":187896541},"pull_request":{"url":"https://api.github.com/repos/nmstate/nmstate/pulls/5","id":187674133,"html_url":"https://github.com/nmstate/nmstate/pull/5","diff_url":"https://github.com/nmstate/nmstate/pull/5.diff","patch_url":"https://github.com/nmstate/nmstate/pull/5.patch","issue_url":"https://api.github.com/repos/nmstate/nmstate/issues/5","number":5,"state":"open","locked":false,"title":"Introduce a basic schema with validation tests","user":{"login":"EdDev","id":9546119,"avatar_url":"https://avatars1.githubusercontent.com/u/9546119?v=4","gravatar_id":"","url":"https://api.github.com/users/EdDev","html_url":"https://github.com/EdDev","followers_url":"https://api.github.com/users/EdDev/followers","following_url":"https://api.github.com/users/EdDev/following{/other_user}","gists_url":"https://api.github.com/users/EdDev/gists{/gist_id}","starred_url":"https://api.github.com/users/EdDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdDev/subscriptions","organizations_url":"https://api.github.com/users/EdDev/orgs","repos_url":"https://api.github.com/users/EdDev/repos","events_url":"https://api.github.com/users/EdDev/events{/privacy}","received_events_url":"https://api.github.com/users/EdDev/received_events","type":"User","site_admin":false},"body":"A basic schema is introduced, defined in json-schema[1] and implemented\r\nby jsonschema[2] python implementation.\r\n\r\nThe full/partial definition for the nmstate schema will be introduced in\r\na seperate patch.\r\n\r\n[1] http://json-schema.org\r\n[2] https://github.com/Julian/jsonschema","created_at":"2018-05-13T14:54:17Z","updated_at":"2018-05-14T13:53:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a61de0a69749a2fc91810207cba6e4e70b02d27","assignee":null,"assignees":[],"requested_reviewers":[{"login":"tyll","id":197720,"avatar_url":"https://avatars2.githubusercontent.com/u/197720?v=4","gravatar_id":"","url":"https://api.github.com/users/tyll","html_url":"https://github.com/tyll","followers_url":"https://api.github.com/users/tyll/followers","following_url":"https://api.github.com/users/tyll/following{/other_user}","gists_url":"https://api.github.com/users/tyll/gists{/gist_id}","starred_url":"https://api.github.com/users/tyll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyll/subscriptions","organizations_url":"https://api.github.com/users/tyll/orgs","repos_url":"https://api.github.com/users/tyll/repos","events_url":"https://api.github.com/users/tyll/events{/privacy}","received_events_url":"https://api.github.com/users/tyll/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nmstate/nmstate/pulls/5/commits","review_comments_url":"https://api.github.com/repos/nmstate/nmstate/pulls/5/comments","review_comment_url":"https://api.github.com/repos/nmstate/nmstate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nmstate/nmstate/issues/5/comments","statuses_url":"https://api.github.com/repos/nmstate/nmstate/statuses/d8b9aafd2c95b088d115a26adf65f480806a4cb4","head":{"label":"EdDev:jsonschema","ref":"jsonschema","sha":"d8b9aafd2c95b088d115a26adf65f480806a4cb4","user":{"login":"EdDev","id":9546119,"avatar_url":"https://avatars1.githubusercontent.com/u/9546119?v=4","gravatar_id":"","url":"https://api.github.com/users/EdDev","html_url":"https://github.com/EdDev","followers_url":"https://api.github.com/users/EdDev/followers","following_url":"https://api.github.com/users/EdDev/following{/other_user}","gists_url":"https://api.github.com/users/EdDev/gists{/gist_id}","starred_url":"https://api.github.com/users/EdDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdDev/subscriptions","organizations_url":"https://api.github.com/users/EdDev/orgs","repos_url":"https://api.github.com/users/EdDev/repos","events_url":"https://api.github.com/users/EdDev/events{/privacy}","received_events_url":"https://api.github.com/users/EdDev/received_events","type":"User","site_admin":false},"repo":{"id":133216954,"name":"nmstate","full_name":"EdDev/nmstate","owner":{"login":"EdDev","id":9546119,"avatar_url":"https://avatars1.githubusercontent.com/u/9546119?v=4","gravatar_id":"","url":"https://api.github.com/users/EdDev","html_url":"https://github.com/EdDev","followers_url":"https://api.github.com/users/EdDev/followers","following_url":"https://api.github.com/users/EdDev/following{/other_user}","gists_url":"https://api.github.com/users/EdDev/gists{/gist_id}","starred_url":"https://api.github.com/users/EdDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdDev/subscriptions","organizations_url":"https://api.github.com/users/EdDev/orgs","repos_url":"https://api.github.com/users/EdDev/repos","events_url":"https://api.github.com/users/EdDev/events{/privacy}","received_events_url":"https://api.github.com/users/EdDev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EdDev/nmstate","description":null,"fork":true,"url":"https://api.github.com/repos/EdDev/nmstate","forks_url":"https://api.github.com/repos/EdDev/nmstate/forks","keys_url":"https://api.github.com/repos/EdDev/nmstate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EdDev/nmstate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EdDev/nmstate/teams","hooks_url":"https://api.github.com/repos/EdDev/nmstate/hooks","issue_events_url":"https://api.github.com/repos/EdDev/nmstate/issues/events{/number}","events_url":"https://api.github.com/repos/EdDev/nmstate/events","assignees_url":"https://api.github.com/repos/EdDev/nmstate/assignees{/user}","branches_url":"https://api.github.com/repos/EdDev/nmstate/branches{/branch}","tags_url":"https://api.github.com/repos/EdDev/nmstate/tags","blobs_url":"https://api.github.com/repos/EdDev/nmstate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EdDev/nmstate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EdDev/nmstate/git/refs{/sha}","trees_url":"https://api.github.com/repos/EdDev/nmstate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EdDev/nmstate/statuses/{sha}","languages_url":"https://api.github.com/repos/EdDev/nmstate/languages","stargazers_url":"https://api.github.com/repos/EdDev/nmstate/stargazers","contributors_url":"https://api.github.com/repos/EdDev/nmstate/contributors","subscribers_url":"https://api.github.com/repos/EdDev/nmstate/subscribers","subscription_url":"https://api.github.com/repos/EdDev/nmstate/subscription","commits_url":"https://api.github.com/repos/EdDev/nmstate/commits{/sha}","git_commits_url":"https://api.github.com/repos/EdDev/nmstate/git/commits{/sha}","comments_url":"https://api.github.com/repos/EdDev/nmstate/comments{/number}","issue_comment_url":"https://api.github.com/repos/EdDev/nmstate/issues/comments{/number}","contents_url":"https://api.github.com/repos/EdDev/nmstate/contents/{+path}","compare_url":"https://api.github.com/repos/EdDev/nmstate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EdDev/nmstate/merges","archive_url":"https://api.github.com/repos/EdDev/nmstate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EdDev/nmstate/downloads","issues_url":"https://api.github.com/repos/EdDev/nmstate/issues{/number}","pulls_url":"https://api.github.com/repos/EdDev/nmstate/pulls{/number}","milestones_url":"https://api.github.com/repos/EdDev/nmstate/milestones{/number}","notifications_url":"https://api.github.com/repos/EdDev/nmstate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EdDev/nmstate/labels{/name}","releases_url":"https://api.github.com/repos/EdDev/nmstate/releases{/id}","deployments_url":"https://api.github.com/repos/EdDev/nmstate/deployments","created_at":"2018-05-13T07:58:22Z","updated_at":"2018-05-13T07:58:24Z","pushed_at":"2018-05-14T13:32:43Z","git_url":"git://github.com/EdDev/nmstate.git","ssh_url":"git@github.com:EdDev/nmstate.git","clone_url":"https://github.com/EdDev/nmstate.git","svn_url":"https://github.com/EdDev/nmstate","homepage":null,"size":16,"stargazers_count":0,"watchers_count":0,"language":"Python","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":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nmstate:master","ref":"master","sha":"6c6cd31c5ead65869eeb716f72ac5598051e470a","user":{"login":"nmstate","id":39068239,"avatar_url":"https://avatars0.githubusercontent.com/u/39068239?v=4","gravatar_id":"","url":"https://api.github.com/users/nmstate","html_url":"https://github.com/nmstate","followers_url":"https://api.github.com/users/nmstate/followers","following_url":"https://api.github.com/users/nmstate/following{/other_user}","gists_url":"https://api.github.com/users/nmstate/gists{/gist_id}","starred_url":"https://api.github.com/users/nmstate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmstate/subscriptions","organizations_url":"https://api.github.com/users/nmstate/orgs","repos_url":"https://api.github.com/users/nmstate/repos","events_url":"https://api.github.com/users/nmstate/events{/privacy}","received_events_url":"https://api.github.com/users/nmstate/received_events","type":"Organization","site_admin":false},"repo":{"id":132556280,"name":"nmstate","full_name":"nmstate/nmstate","owner":{"login":"nmstate","id":39068239,"avatar_url":"https://avatars0.githubusercontent.com/u/39068239?v=4","gravatar_id":"","url":"https://api.github.com/users/nmstate","html_url":"https://github.com/nmstate","followers_url":"https://api.github.com/users/nmstate/followers","following_url":"https://api.github.com/users/nmstate/following{/other_user}","gists_url":"https://api.github.com/users/nmstate/gists{/gist_id}","starred_url":"https://api.github.com/users/nmstate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmstate/subscriptions","organizations_url":"https://api.github.com/users/nmstate/orgs","repos_url":"https://api.github.com/users/nmstate/repos","events_url":"https://api.github.com/users/nmstate/events{/privacy}","received_events_url":"https://api.github.com/users/nmstate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nmstate/nmstate","description":null,"fork":false,"url":"https://api.github.com/repos/nmstate/nmstate","forks_url":"https://api.github.com/repos/nmstate/nmstate/forks","keys_url":"https://api.github.com/repos/nmstate/nmstate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nmstate/nmstate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nmstate/nmstate/teams","hooks_url":"https://api.github.com/repos/nmstate/nmstate/hooks","issue_events_url":"https://api.github.com/repos/nmstate/nmstate/issues/events{/number}","events_url":"https://api.github.com/repos/nmstate/nmstate/events","assignees_url":"https://api.github.com/repos/nmstate/nmstate/assignees{/user}","branches_url":"https://api.github.com/repos/nmstate/nmstate/branches{/branch}","tags_url":"https://api.github.com/repos/nmstate/nmstate/tags","blobs_url":"https://api.github.com/repos/nmstate/nmstate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nmstate/nmstate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nmstate/nmstate/git/refs{/sha}","trees_url":"https://api.github.com/repos/nmstate/nmstate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nmstate/nmstate/statuses/{sha}","languages_url":"https://api.github.com/repos/nmstate/nmstate/languages","stargazers_url":"https://api.github.com/repos/nmstate/nmstate/stargazers","contributors_url":"https://api.github.com/repos/nmstate/nmstate/contributors","subscribers_url":"https://api.github.com/repos/nmstate/nmstate/subscribers","subscription_url":"https://api.github.com/repos/nmstate/nmstate/subscription","commits_url":"https://api.github.com/repos/nmstate/nmstate/commits{/sha}","git_commits_url":"https://api.github.com/repos/nmstate/nmstate/git/commits{/sha}","comments_url":"https://api.github.com/repos/nmstate/nmstate/comments{/number}","issue_comment_url":"https://api.github.com/repos/nmstate/nmstate/issues/comments{/number}","contents_url":"https://api.github.com/repos/nmstate/nmstate/contents/{+path}","compare_url":"https://api.github.com/repos/nmstate/nmstate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nmstate/nmstate/merges","archive_url":"https://api.github.com/repos/nmstate/nmstate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nmstate/nmstate/downloads","issues_url":"https://api.github.com/repos/nmstate/nmstate/issues{/number}","pulls_url":"https://api.github.com/repos/nmstate/nmstate/pulls{/number}","milestones_url":"https://api.github.com/repos/nmstate/nmstate/milestones{/number}","notifications_url":"https://api.github.com/repos/nmstate/nmstate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nmstate/nmstate/labels{/name}","releases_url":"https://api.github.com/repos/nmstate/nmstate/releases{/id}","deployments_url":"https://api.github.com/repos/nmstate/nmstate/deployments","created_at":"2018-05-08T05:02:22Z","updated_at":"2018-05-13T07:58:12Z","pushed_at":"2018-05-14T10:20:38Z","git_url":"git://github.com/nmstate/nmstate.git","ssh_url":"git@github.com:nmstate/nmstate.git","clone_url":"https://github.com/nmstate/nmstate.git","svn_url":"https://github.com/nmstate/nmstate","homepage":null,"size":13,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":2,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nmstate/nmstate/pulls/5"},"html":{"href":"https://github.com/nmstate/nmstate/pull/5"},"issue":{"href":"https://api.github.com/repos/nmstate/nmstate/issues/5"},"comments":{"href":"https://api.github.com/repos/nmstate/nmstate/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/nmstate/nmstate/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/nmstate/nmstate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nmstate/nmstate/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/nmstate/nmstate/statuses/d8b9aafd2c95b088d115a26adf65f480806a4cb4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"EdDev"}}