{"action":"created","comment":{"url":"https://api.github.com/repos/spacetelescope/asdf-standard/pulls/comments/31459572","id":31459572,"diff_hunk":"@@ -0,0 +1,46 @@\n+%YAML 1.1\n+---\n+$schema: \"http://json-schema.org/draft-04/schema\"\n+id: \"http://stsci.edu/schemas/asdf/0.1.0/asdf-schema\"\n+title:\n+  ASDF schema\n+description: |\n+  A metaschema extending YAML Schema and JSON Schema to add support\n+  for some ASDF-specific checks, related to nd-arrays.","path":"schemas/stsci.edu/asdf/0.1.0/asdf-schema.yaml","position":9,"original_position":9,"commit_id":"092d5cf5c1bbfde3e24983a7ebeb422cd859a6d2","original_commit_id":"092d5cf5c1bbfde3e24983a7ebeb422cd859a6d2","user":{"login":"mdboom","id":38294,"avatar_url":"https://avatars.githubusercontent.com/u/38294?v=3","gravatar_id":"","url":"https://api.github.com/users/mdboom","html_url":"https://github.com/mdboom","followers_url":"https://api.github.com/users/mdboom/followers","following_url":"https://api.github.com/users/mdboom/following{/other_user}","gists_url":"https://api.github.com/users/mdboom/gists{/gist_id}","starred_url":"https://api.github.com/users/mdboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdboom/subscriptions","organizations_url":"https://api.github.com/users/mdboom/orgs","repos_url":"https://api.github.com/users/mdboom/repos","events_url":"https://api.github.com/users/mdboom/events{/privacy}","received_events_url":"https://api.github.com/users/mdboom/received_events","type":"User","site_admin":false},"body":"So, I definitely get your point (why include a tool for something we can do already), but it sure makes things verbose as I try to convert things over on the jwst_lib.models end.  The exact incantation (equivalent to ndim) is:\r\n\r\n```\r\nallOf:\r\n   - $ref: <...>\r\n   - properties:\r\n      shape:\r\n         minItems: 2\r\n         maxItems: 2\r\n```\r\n\r\nvs.\r\n\r\n```\r\nndim: 2\r\n```\r\n\r\n(since in the latter case, the fact that it's an array is also conveniently implied).","created_at":"2015-06-01T19:16:52Z","updated_at":"2015-06-01T19:16:52Z","html_url":"https://github.com/spacetelescope/asdf-standard/pull/85#discussion_r31459572","pull_request_url":"https://api.github.com/repos/spacetelescope/asdf-standard/pulls/85","_links":{"self":{"href":"https://api.github.com/repos/spacetelescope/asdf-standard/pulls/comments/31459572"},"html":{"href":"https://github.com/spacetelescope/asdf-standard/pull/85#discussion_r31459572"},"pull_request":{"href":"https://api.github.com/repos/spacetelescope/asdf-standard/pulls/85"}}},"pull_request":{"url":"https://api.github.com/repos/spacetelescope/asdf-standard/pulls/85","id":36215725,"html_url":"https://github.com/spacetelescope/asdf-standard/pull/85","diff_url":"https://github.com/spacetelescope/asdf-standard/pull/85.diff","patch_url":"https://github.com/spacetelescope/asdf-standard/pull/85.patch","issue_url":"https://api.github.com/repos/spacetelescope/asdf-standard/issues/85","number":85,"state":"open","locked":false,"title":"Custom validators","user":{"login":"mdboom","id":38294,"avatar_url":"https://avatars.githubusercontent.com/u/38294?v=3","gravatar_id":"","url":"https://api.github.com/users/mdboom","html_url":"https://github.com/mdboom","followers_url":"https://api.github.com/users/mdboom/followers","following_url":"https://api.github.com/users/mdboom/following{/other_user}","gists_url":"https://api.github.com/users/mdboom/gists{/gist_id}","starred_url":"https://api.github.com/users/mdboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdboom/subscriptions","organizations_url":"https://api.github.com/users/mdboom/orgs","repos_url":"https://api.github.com/users/mdboom/repos","events_url":"https://api.github.com/users/mdboom/events{/privacy}","received_events_url":"https://api.github.com/users/mdboom/received_events","type":"User","site_admin":false},"body":"This adds some custom schema validators related to ndarrays.","created_at":"2015-05-26T15:40:30Z","updated_at":"2015-06-01T19:16:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e18cdc964b3b84b0e0b9df6bb4a12cd4c5e1236","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spacetelescope/asdf-standard/pulls/85/commits","review_comments_url":"https://api.github.com/repos/spacetelescope/asdf-standard/pulls/85/comments","review_comment_url":"https://api.github.com/repos/spacetelescope/asdf-standard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spacetelescope/asdf-standard/issues/85/comments","statuses_url":"https://api.github.com/repos/spacetelescope/asdf-standard/statuses/092d5cf5c1bbfde3e24983a7ebeb422cd859a6d2","head":{"label":"mdboom:custom-validators","ref":"custom-validators","sha":"092d5cf5c1bbfde3e24983a7ebeb422cd859a6d2","user":{"login":"mdboom","id":38294,"avatar_url":"https://avatars.githubusercontent.com/u/38294?v=3","gravatar_id":"","url":"https://api.github.com/users/mdboom","html_url":"https://github.com/mdboom","followers_url":"https://api.github.com/users/mdboom/followers","following_url":"https://api.github.com/users/mdboom/following{/other_user}","gists_url":"https://api.github.com/users/mdboom/gists{/gist_id}","starred_url":"https://api.github.com/users/mdboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdboom/subscriptions","organizations_url":"https://api.github.com/users/mdboom/orgs","repos_url":"https://api.github.com/users/mdboom/repos","events_url":"https://api.github.com/users/mdboom/events{/privacy}","received_events_url":"https://api.github.com/users/mdboom/received_events","type":"User","site_admin":false},"repo":{"id":18113568,"name":"asdf-standard","full_name":"mdboom/asdf-standard","owner":{"login":"mdboom","id":38294,"avatar_url":"https://avatars.githubusercontent.com/u/38294?v=3","gravatar_id":"","url":"https://api.github.com/users/mdboom","html_url":"https://github.com/mdboom","followers_url":"https://api.github.com/users/mdboom/followers","following_url":"https://api.github.com/users/mdboom/following{/other_user}","gists_url":"https://api.github.com/users/mdboom/gists{/gist_id}","starred_url":"https://api.github.com/users/mdboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdboom/subscriptions","organizations_url":"https://api.github.com/users/mdboom/orgs","repos_url":"https://api.github.com/users/mdboom/repos","events_url":"https://api.github.com/users/mdboom/events{/privacy}","received_events_url":"https://api.github.com/users/mdboom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mdboom/asdf-standard","description":"Standards document describing FINF (FINF is not FITS), the next generation astronomical data format","fork":true,"url":"https://api.github.com/repos/mdboom/asdf-standard","forks_url":"https://api.github.com/repos/mdboom/asdf-standard/forks","keys_url":"https://api.github.com/repos/mdboom/asdf-standard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdboom/asdf-standard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdboom/asdf-standard/teams","hooks_url":"https://api.github.com/repos/mdboom/asdf-standard/hooks","issue_events_url":"https://api.github.com/repos/mdboom/asdf-standard/issues/events{/number}","events_url":"https://api.github.com/repos/mdboom/asdf-standard/events","assignees_url":"https://api.github.com/repos/mdboom/asdf-standard/assignees{/user}","branches_url":"https://api.github.com/repos/mdboom/asdf-standard/branches{/branch}","tags_url":"https://api.github.com/repos/mdboom/asdf-standard/tags","blobs_url":"https://api.github.com/repos/mdboom/asdf-standard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdboom/asdf-standard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdboom/asdf-standard/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdboom/asdf-standard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdboom/asdf-standard/statuses/{sha}","languages_url":"https://api.github.com/repos/mdboom/asdf-standard/languages","stargazers_url":"https://api.github.com/repos/mdboom/asdf-standard/stargazers","contributors_url":"https://api.github.com/repos/mdboom/asdf-standard/contributors","subscribers_url":"https://api.github.com/repos/mdboom/asdf-standard/subscribers","subscription_url":"https://api.github.com/repos/mdboom/asdf-standard/subscription","commits_url":"https://api.github.com/repos/mdboom/asdf-standard/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdboom/asdf-standard/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdboom/asdf-standard/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdboom/asdf-standard/issues/comments{/number}","contents_url":"https://api.github.com/repos/mdboom/asdf-standard/contents/{+path}","compare_url":"https://api.github.com/repos/mdboom/asdf-standard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdboom/asdf-standard/merges","archive_url":"https://api.github.com/repos/mdboom/asdf-standard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdboom/asdf-standard/downloads","issues_url":"https://api.github.com/repos/mdboom/asdf-standard/issues{/number}","pulls_url":"https://api.github.com/repos/mdboom/asdf-standard/pulls{/number}","milestones_url":"https://api.github.com/repos/mdboom/asdf-standard/milestones{/number}","notifications_url":"https://api.github.com/repos/mdboom/asdf-standard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdboom/asdf-standard/labels{/name}","releases_url":"https://api.github.com/repos/mdboom/asdf-standard/releases{/id}","created_at":"2014-03-25T19:26:33Z","updated_at":"2015-01-15T15:57:17Z","pushed_at":"2015-06-01T19:01:36Z","git_url":"git://github.com/mdboom/asdf-standard.git","ssh_url":"git@github.com:mdboom/asdf-standard.git","clone_url":"https://github.com/mdboom/asdf-standard.git","svn_url":"https://github.com/mdboom/asdf-standard","homepage":null,"size":883,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"spacetelescope:master","ref":"master","sha":"b14cc1f04edd16eb965103d34fc939c7c24e1ba8","user":{"login":"spacetelescope","id":2751928,"avatar_url":"https://avatars.githubusercontent.com/u/2751928?v=3","gravatar_id":"","url":"https://api.github.com/users/spacetelescope","html_url":"https://github.com/spacetelescope","followers_url":"https://api.github.com/users/spacetelescope/followers","following_url":"https://api.github.com/users/spacetelescope/following{/other_user}","gists_url":"https://api.github.com/users/spacetelescope/gists{/gist_id}","starred_url":"https://api.github.com/users/spacetelescope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spacetelescope/subscriptions","organizations_url":"https://api.github.com/users/spacetelescope/orgs","repos_url":"https://api.github.com/users/spacetelescope/repos","events_url":"https://api.github.com/users/spacetelescope/events{/privacy}","received_events_url":"https://api.github.com/users/spacetelescope/received_events","type":"Organization","site_admin":false},"repo":{"id":18113139,"name":"asdf-standard","full_name":"spacetelescope/asdf-standard","owner":{"login":"spacetelescope","id":2751928,"avatar_url":"https://avatars.githubusercontent.com/u/2751928?v=3","gravatar_id":"","url":"https://api.github.com/users/spacetelescope","html_url":"https://github.com/spacetelescope","followers_url":"https://api.github.com/users/spacetelescope/followers","following_url":"https://api.github.com/users/spacetelescope/following{/other_user}","gists_url":"https://api.github.com/users/spacetelescope/gists{/gist_id}","starred_url":"https://api.github.com/users/spacetelescope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spacetelescope/subscriptions","organizations_url":"https://api.github.com/users/spacetelescope/orgs","repos_url":"https://api.github.com/users/spacetelescope/repos","events_url":"https://api.github.com/users/spacetelescope/events{/privacy}","received_events_url":"https://api.github.com/users/spacetelescope/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spacetelescope/asdf-standard","description":"Standards document describing ASDF, Advanced Scientific Data Format","fork":false,"url":"https://api.github.com/repos/spacetelescope/asdf-standard","forks_url":"https://api.github.com/repos/spacetelescope/asdf-standard/forks","keys_url":"https://api.github.com/repos/spacetelescope/asdf-standard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spacetelescope/asdf-standard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spacetelescope/asdf-standard/teams","hooks_url":"https://api.github.com/repos/spacetelescope/asdf-standard/hooks","issue_events_url":"https://api.github.com/repos/spacetelescope/asdf-standard/issues/events{/number}","events_url":"https://api.github.com/repos/spacetelescope/asdf-standard/events","assignees_url":"https://api.github.com/repos/spacetelescope/asdf-standard/assignees{/user}","branches_url":"https://api.github.com/repos/spacetelescope/asdf-standard/branches{/branch}","tags_url":"https://api.github.com/repos/spacetelescope/asdf-standard/tags","blobs_url":"https://api.github.com/repos/spacetelescope/asdf-standard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spacetelescope/asdf-standard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spacetelescope/asdf-standard/git/refs{/sha}","trees_url":"https://api.github.com/repos/spacetelescope/asdf-standard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spacetelescope/asdf-standard/statuses/{sha}","languages_url":"https://api.github.com/repos/spacetelescope/asdf-standard/languages","stargazers_url":"https://api.github.com/repos/spacetelescope/asdf-standard/stargazers","contributors_url":"https://api.github.com/repos/spacetelescope/asdf-standard/contributors","subscribers_url":"https://api.github.com/repos/spacetelescope/asdf-standard/subscribers","subscription_url":"https://api.github.com/repos/spacetelescope/asdf-standard/subscription","commits_url":"https://api.github.com/repos/spacetelescope/asdf-standard/commits{/sha}","git_commits_url":"https://api.github.com/repos/spacetelescope/asdf-standard/git/commits{/sha}","comments_url":"https://api.github.com/repos/spacetelescope/asdf-standard/comments{/number}","issue_comment_url":"https://api.github.com/repos/spacetelescope/asdf-standard/issues/comments{/number}","contents_url":"https://api.github.com/repos/spacetelescope/asdf-standard/contents/{+path}","compare_url":"https://api.github.com/repos/spacetelescope/asdf-standard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spacetelescope/asdf-standard/merges","archive_url":"https://api.github.com/repos/spacetelescope/asdf-standard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spacetelescope/asdf-standard/downloads","issues_url":"https://api.github.com/repos/spacetelescope/asdf-standard/issues{/number}","pulls_url":"https://api.github.com/repos/spacetelescope/asdf-standard/pulls{/number}","milestones_url":"https://api.github.com/repos/spacetelescope/asdf-standard/milestones{/number}","notifications_url":"https://api.github.com/repos/spacetelescope/asdf-standard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spacetelescope/asdf-standard/labels{/name}","releases_url":"https://api.github.com/repos/spacetelescope/asdf-standard/releases{/id}","created_at":"2014-03-25T19:13:57Z","updated_at":"2015-05-05T12:53:11Z","pushed_at":"2015-06-01T19:04:03Z","git_url":"git://github.com/spacetelescope/asdf-standard.git","ssh_url":"git@github.com:spacetelescope/asdf-standard.git","clone_url":"https://github.com/spacetelescope/asdf-standard.git","svn_url":"https://github.com/spacetelescope/asdf-standard","homepage":"http://asdf-standard.readthedocs.org/","size":2558,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":16,"forks":7,"open_issues":16,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spacetelescope/asdf-standard/pulls/85"},"html":{"href":"https://github.com/spacetelescope/asdf-standard/pull/85"},"issue":{"href":"https://api.github.com/repos/spacetelescope/asdf-standard/issues/85"},"comments":{"href":"https://api.github.com/repos/spacetelescope/asdf-standard/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/spacetelescope/asdf-standard/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/spacetelescope/asdf-standard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spacetelescope/asdf-standard/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/spacetelescope/asdf-standard/statuses/092d5cf5c1bbfde3e24983a7ebeb422cd859a6d2"}}}}