{"action":"created","issue":{"url":"https://api.github.com/repos/json-schema/json-schema/issues/244","repository_url":"https://api.github.com/repos/json-schema/json-schema","labels_url":"https://api.github.com/repos/json-schema/json-schema/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/json-schema/json-schema/issues/244/comments","events_url":"https://api.github.com/repos/json-schema/json-schema/issues/244/events","html_url":"https://github.com/json-schema/json-schema/issues/244","id":154320950,"number":244,"title":"Additional keyword for validating the content a link points to","user":{"login":"seagreen","id":1310143,"avatar_url":"https://avatars.githubusercontent.com/u/1310143?v=3","gravatar_id":"","url":"https://api.github.com/users/seagreen","html_url":"https://github.com/seagreen","followers_url":"https://api.github.com/users/seagreen/followers","following_url":"https://api.github.com/users/seagreen/following{/other_user}","gists_url":"https://api.github.com/users/seagreen/gists{/gist_id}","starred_url":"https://api.github.com/users/seagreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seagreen/subscriptions","organizations_url":"https://api.github.com/users/seagreen/orgs","repos_url":"https://api.github.com/users/seagreen/repos","events_url":"https://api.github.com/users/seagreen/events{/privacy}","received_events_url":"https://api.github.com/users/seagreen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-11T19:17:26Z","updated_at":"2016-05-12T01:14:37Z","closed_at":null,"body":"An example of how this would be userful: a user has a JSON document containing a link. They'd like to write a schema that makes that document invalid if the content that links points to doesn't itself conform to some other schema.\r\n\r\nFor example, in this situation:\r\n\r\n`schema.json`:\r\n```\r\n{                                                                                                   \r\n  \"properties\": {                                                                                   \r\n    \"foo\": {                                                                                        \r\n      \"linkContent\": \"./schema.json\",                                              \r\n      \"type\": \"string\"                                                                              \r\n    }                                                                                               \r\n  }                                                                                                 \r\n}\r\n```\r\n\r\n`start.json`: `{ \"foo\": \"./more-data.json\" }`\r\n\r\n`more-data.json`: `[true, true]`\r\n\r\n... validating the data at `start.json` using the `schema.json` schema would result in invalidation.\r\n"},"comment":{"url":"https://api.github.com/repos/json-schema/json-schema/issues/comments/218634513","html_url":"https://github.com/json-schema/json-schema/issues/244#issuecomment-218634513","issue_url":"https://api.github.com/repos/json-schema/json-schema/issues/244","id":218634513,"user":{"login":"seagreen","id":1310143,"avatar_url":"https://avatars.githubusercontent.com/u/1310143?v=3","gravatar_id":"","url":"https://api.github.com/users/seagreen","html_url":"https://github.com/seagreen","followers_url":"https://api.github.com/users/seagreen/followers","following_url":"https://api.github.com/users/seagreen/following{/other_user}","gists_url":"https://api.github.com/users/seagreen/gists{/gist_id}","starred_url":"https://api.github.com/users/seagreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seagreen/subscriptions","organizations_url":"https://api.github.com/users/seagreen/orgs","repos_url":"https://api.github.com/users/seagreen/repos","events_url":"https://api.github.com/users/seagreen/events{/privacy}","received_events_url":"https://api.github.com/users/seagreen/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T01:14:37Z","updated_at":"2016-05-12T01:14:37Z","body":"In the meantime though, are we dead certain that \"$ref\"s should be resolved before validation? Is this undefined behaviour that's up to the validation library, or is it required?"}}