{"action":"created","comment":{"url":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/comments/57950216","id":57950216,"diff_hunk":"@@ -0,0 +1,33 @@\n+# JSON schema\n+\n+## Overview\n+\n+This directory contains the [JSON Schema](http://json-schema.org/) for\n+validating the `config.json` of this container runtime specification.\n+\n+The layout of the files is as follows:\n+* schema.json - the primary entrypoint for the whole schema document\n+* schema-linux.json - this schema is for the Linux specific sub structure\n+* defs.json - definitions for general types\n+* defs-linux.json - definitions for Linux specific types\n+* validate.go - validation utility source code\n+ \n+\n+## Utility\n+\n+There is also included a simple utility for facilitating validation of a\n+`config.json`. To build it:\n+\n+```bash\n+export GOPATH=`mktemp -d`\n+go get ./...\n+go build .\n+rm -rf $GOPATH\n+```\n+\n+Then use it like:\n+\n+```bash\n+./schema ./schema.json <yourpath>/config.json","path":"schema/README.md","position":31,"original_position":31,"commit_id":"c95f173c33937bc43c18277cc1e9dab122f4e6b9","original_commit_id":"3945fd125f0f67428099e93b15ac00b32eb2023d","user":{"login":"wking","id":209920,"avatar_url":"https://avatars.githubusercontent.com/u/209920?v=3","gravatar_id":"","url":"https://api.github.com/users/wking","html_url":"https://github.com/wking","followers_url":"https://api.github.com/users/wking/followers","following_url":"https://api.github.com/users/wking/following{/other_user}","gists_url":"https://api.github.com/users/wking/gists{/gist_id}","starred_url":"https://api.github.com/users/wking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wking/subscriptions","organizations_url":"https://api.github.com/users/wking/orgs","repos_url":"https://api.github.com/users/wking/repos","events_url":"https://api.github.com/users/wking/events{/privacy}","received_events_url":"https://api.github.com/users/wking/received_events","type":"User","site_admin":false},"body":"On Wed, Mar 30, 2016 at 12:35:57PM -0700, Vincent Batts wrote:\n> > +./schema ./schema.json <yourpath>/config.json\n> \n> `./` is common path ...\n\nI agree it's legal; I just don't think it's intuitive, and it strikes\nme as an unlikely requirement.  I see things like ‘git add README’ [1]\na lot more frequently than ‘git add ./README’.\n\n[1]: https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository#Tracking-New-Files\n","created_at":"2016-03-30T19:39:38Z","updated_at":"2016-03-30T19:39:38Z","html_url":"https://github.com/opencontainers/runtime-spec/pull/360#discussion_r57950216","pull_request_url":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/360","_links":{"self":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/comments/57950216"},"html":{"href":"https://github.com/opencontainers/runtime-spec/pull/360#discussion_r57950216"},"pull_request":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/360"}}},"pull_request":{"url":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/360","id":64677619,"html_url":"https://github.com/opencontainers/runtime-spec/pull/360","diff_url":"https://github.com/opencontainers/runtime-spec/pull/360.diff","patch_url":"https://github.com/opencontainers/runtime-spec/pull/360.patch","issue_url":"https://api.github.com/repos/opencontainers/runtime-spec/issues/360","number":360,"state":"open","locked":false,"title":"schema: add a README","user":{"login":"vbatts","id":67049,"avatar_url":"https://avatars.githubusercontent.com/u/67049?v=3","gravatar_id":"","url":"https://api.github.com/users/vbatts","html_url":"https://github.com/vbatts","followers_url":"https://api.github.com/users/vbatts/followers","following_url":"https://api.github.com/users/vbatts/following{/other_user}","gists_url":"https://api.github.com/users/vbatts/gists{/gist_id}","starred_url":"https://api.github.com/users/vbatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbatts/subscriptions","organizations_url":"https://api.github.com/users/vbatts/orgs","repos_url":"https://api.github.com/users/vbatts/repos","events_url":"https://api.github.com/users/vbatts/events{/privacy}","received_events_url":"https://api.github.com/users/vbatts/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>","created_at":"2016-03-30T18:50:21Z","updated_at":"2016-03-30T19:39:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10d221be2b00ee2251775ae157d1077fd6f1160e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/360/commits","review_comments_url":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/360/comments","review_comment_url":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opencontainers/runtime-spec/issues/360/comments","statuses_url":"https://api.github.com/repos/opencontainers/runtime-spec/statuses/c95f173c33937bc43c18277cc1e9dab122f4e6b9","head":{"label":"vbatts:schema-README","ref":"schema-README","sha":"c95f173c33937bc43c18277cc1e9dab122f4e6b9","user":{"login":"vbatts","id":67049,"avatar_url":"https://avatars.githubusercontent.com/u/67049?v=3","gravatar_id":"","url":"https://api.github.com/users/vbatts","html_url":"https://github.com/vbatts","followers_url":"https://api.github.com/users/vbatts/followers","following_url":"https://api.github.com/users/vbatts/following{/other_user}","gists_url":"https://api.github.com/users/vbatts/gists{/gist_id}","starred_url":"https://api.github.com/users/vbatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbatts/subscriptions","organizations_url":"https://api.github.com/users/vbatts/orgs","repos_url":"https://api.github.com/users/vbatts/repos","events_url":"https://api.github.com/users/vbatts/events{/privacy}","received_events_url":"https://api.github.com/users/vbatts/received_events","type":"User","site_admin":false},"repo":{"id":39969450,"name":"specs","full_name":"vbatts/specs","owner":{"login":"vbatts","id":67049,"avatar_url":"https://avatars.githubusercontent.com/u/67049?v=3","gravatar_id":"","url":"https://api.github.com/users/vbatts","html_url":"https://github.com/vbatts","followers_url":"https://api.github.com/users/vbatts/followers","following_url":"https://api.github.com/users/vbatts/following{/other_user}","gists_url":"https://api.github.com/users/vbatts/gists{/gist_id}","starred_url":"https://api.github.com/users/vbatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbatts/subscriptions","organizations_url":"https://api.github.com/users/vbatts/orgs","repos_url":"https://api.github.com/users/vbatts/repos","events_url":"https://api.github.com/users/vbatts/events{/privacy}","received_events_url":"https://api.github.com/users/vbatts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vbatts/specs","description":"Open Container Specifications","fork":true,"url":"https://api.github.com/repos/vbatts/specs","forks_url":"https://api.github.com/repos/vbatts/specs/forks","keys_url":"https://api.github.com/repos/vbatts/specs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vbatts/specs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vbatts/specs/teams","hooks_url":"https://api.github.com/repos/vbatts/specs/hooks","issue_events_url":"https://api.github.com/repos/vbatts/specs/issues/events{/number}","events_url":"https://api.github.com/repos/vbatts/specs/events","assignees_url":"https://api.github.com/repos/vbatts/specs/assignees{/user}","branches_url":"https://api.github.com/repos/vbatts/specs/branches{/branch}","tags_url":"https://api.github.com/repos/vbatts/specs/tags","blobs_url":"https://api.github.com/repos/vbatts/specs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vbatts/specs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vbatts/specs/git/refs{/sha}","trees_url":"https://api.github.com/repos/vbatts/specs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vbatts/specs/statuses/{sha}","languages_url":"https://api.github.com/repos/vbatts/specs/languages","stargazers_url":"https://api.github.com/repos/vbatts/specs/stargazers","contributors_url":"https://api.github.com/repos/vbatts/specs/contributors","subscribers_url":"https://api.github.com/repos/vbatts/specs/subscribers","subscription_url":"https://api.github.com/repos/vbatts/specs/subscription","commits_url":"https://api.github.com/repos/vbatts/specs/commits{/sha}","git_commits_url":"https://api.github.com/repos/vbatts/specs/git/commits{/sha}","comments_url":"https://api.github.com/repos/vbatts/specs/comments{/number}","issue_comment_url":"https://api.github.com/repos/vbatts/specs/issues/comments{/number}","contents_url":"https://api.github.com/repos/vbatts/specs/contents/{+path}","compare_url":"https://api.github.com/repos/vbatts/specs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vbatts/specs/merges","archive_url":"https://api.github.com/repos/vbatts/specs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vbatts/specs/downloads","issues_url":"https://api.github.com/repos/vbatts/specs/issues{/number}","pulls_url":"https://api.github.com/repos/vbatts/specs/pulls{/number}","milestones_url":"https://api.github.com/repos/vbatts/specs/milestones{/number}","notifications_url":"https://api.github.com/repos/vbatts/specs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vbatts/specs/labels{/name}","releases_url":"https://api.github.com/repos/vbatts/specs/releases{/id}","deployments_url":"https://api.github.com/repos/vbatts/specs/deployments","created_at":"2015-07-30T19:50:53Z","updated_at":"2015-07-30T19:50:54Z","pushed_at":"2016-03-30T19:35:25Z","git_url":"git://github.com/vbatts/specs.git","ssh_url":"git@github.com:vbatts/specs.git","clone_url":"https://github.com/vbatts/specs.git","svn_url":"https://github.com/vbatts/specs","homepage":"http://www.opencontainers.org","size":428,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"opencontainers:master","ref":"master","sha":"cf8ebc9d6e34a61c6a5dc82d749089ef40184238","user":{"login":"opencontainers","id":12563465,"avatar_url":"https://avatars.githubusercontent.com/u/12563465?v=3","gravatar_id":"","url":"https://api.github.com/users/opencontainers","html_url":"https://github.com/opencontainers","followers_url":"https://api.github.com/users/opencontainers/followers","following_url":"https://api.github.com/users/opencontainers/following{/other_user}","gists_url":"https://api.github.com/users/opencontainers/gists{/gist_id}","starred_url":"https://api.github.com/users/opencontainers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencontainers/subscriptions","organizations_url":"https://api.github.com/users/opencontainers/orgs","repos_url":"https://api.github.com/users/opencontainers/repos","events_url":"https://api.github.com/users/opencontainers/events{/privacy}","received_events_url":"https://api.github.com/users/opencontainers/received_events","type":"Organization","site_admin":false},"repo":{"id":36960293,"name":"runtime-spec","full_name":"opencontainers/runtime-spec","owner":{"login":"opencontainers","id":12563465,"avatar_url":"https://avatars.githubusercontent.com/u/12563465?v=3","gravatar_id":"","url":"https://api.github.com/users/opencontainers","html_url":"https://github.com/opencontainers","followers_url":"https://api.github.com/users/opencontainers/followers","following_url":"https://api.github.com/users/opencontainers/following{/other_user}","gists_url":"https://api.github.com/users/opencontainers/gists{/gist_id}","starred_url":"https://api.github.com/users/opencontainers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencontainers/subscriptions","organizations_url":"https://api.github.com/users/opencontainers/orgs","repos_url":"https://api.github.com/users/opencontainers/repos","events_url":"https://api.github.com/users/opencontainers/events{/privacy}","received_events_url":"https://api.github.com/users/opencontainers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opencontainers/runtime-spec","description":"Open Container Specifications","fork":false,"url":"https://api.github.com/repos/opencontainers/runtime-spec","forks_url":"https://api.github.com/repos/opencontainers/runtime-spec/forks","keys_url":"https://api.github.com/repos/opencontainers/runtime-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opencontainers/runtime-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opencontainers/runtime-spec/teams","hooks_url":"https://api.github.com/repos/opencontainers/runtime-spec/hooks","issue_events_url":"https://api.github.com/repos/opencontainers/runtime-spec/issues/events{/number}","events_url":"https://api.github.com/repos/opencontainers/runtime-spec/events","assignees_url":"https://api.github.com/repos/opencontainers/runtime-spec/assignees{/user}","branches_url":"https://api.github.com/repos/opencontainers/runtime-spec/branches{/branch}","tags_url":"https://api.github.com/repos/opencontainers/runtime-spec/tags","blobs_url":"https://api.github.com/repos/opencontainers/runtime-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opencontainers/runtime-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opencontainers/runtime-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/opencontainers/runtime-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opencontainers/runtime-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/opencontainers/runtime-spec/languages","stargazers_url":"https://api.github.com/repos/opencontainers/runtime-spec/stargazers","contributors_url":"https://api.github.com/repos/opencontainers/runtime-spec/contributors","subscribers_url":"https://api.github.com/repos/opencontainers/runtime-spec/subscribers","subscription_url":"https://api.github.com/repos/opencontainers/runtime-spec/subscription","commits_url":"https://api.github.com/repos/opencontainers/runtime-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/opencontainers/runtime-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/opencontainers/runtime-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/opencontainers/runtime-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/opencontainers/runtime-spec/contents/{+path}","compare_url":"https://api.github.com/repos/opencontainers/runtime-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opencontainers/runtime-spec/merges","archive_url":"https://api.github.com/repos/opencontainers/runtime-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opencontainers/runtime-spec/downloads","issues_url":"https://api.github.com/repos/opencontainers/runtime-spec/issues{/number}","pulls_url":"https://api.github.com/repos/opencontainers/runtime-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/opencontainers/runtime-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/opencontainers/runtime-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opencontainers/runtime-spec/labels{/name}","releases_url":"https://api.github.com/repos/opencontainers/runtime-spec/releases{/id}","deployments_url":"https://api.github.com/repos/opencontainers/runtime-spec/deployments","created_at":"2015-06-05T23:30:10Z","updated_at":"2016-03-30T18:05:19Z","pushed_at":"2016-03-30T19:35:25Z","git_url":"git://github.com/opencontainers/runtime-spec.git","ssh_url":"git@github.com:opencontainers/runtime-spec.git","clone_url":"https://github.com/opencontainers/runtime-spec.git","svn_url":"https://github.com/opencontainers/runtime-spec","homepage":"http://www.opencontainers.org","size":1710,"stargazers_count":639,"watchers_count":639,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":105,"mirror_url":null,"open_issues_count":20,"forks":105,"open_issues":20,"watchers":639,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/360"},"html":{"href":"https://github.com/opencontainers/runtime-spec/pull/360"},"issue":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/issues/360"},"comments":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/issues/360/comments"},"review_comments":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/360/comments"},"review_comment":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/360/commits"},"statuses":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/statuses/c95f173c33937bc43c18277cc1e9dab122f4e6b9"}}}}