{"action":"opened","issue":{"url":"https://api.github.com/repos/mafintosh/is-my-json-valid/issues/67","labels_url":"https://api.github.com/repos/mafintosh/is-my-json-valid/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/mafintosh/is-my-json-valid/issues/67/comments","events_url":"https://api.github.com/repos/mafintosh/is-my-json-valid/issues/67/events","html_url":"https://github.com/mafintosh/is-my-json-valid/issues/67","id":76110017,"number":67,"title":"External Schema Reference is broken","user":{"login":"OllieJennings","id":1575448,"avatar_url":"https://avatars.githubusercontent.com/u/1575448?v=3","gravatar_id":"","url":"https://api.github.com/users/OllieJennings","html_url":"https://github.com/OllieJennings","followers_url":"https://api.github.com/users/OllieJennings/followers","following_url":"https://api.github.com/users/OllieJennings/following{/other_user}","gists_url":"https://api.github.com/users/OllieJennings/gists{/gist_id}","starred_url":"https://api.github.com/users/OllieJennings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OllieJennings/subscriptions","organizations_url":"https://api.github.com/users/OllieJennings/orgs","repos_url":"https://api.github.com/users/OllieJennings/repos","events_url":"https://api.github.com/users/OllieJennings/events{/privacy}","received_events_url":"https://api.github.com/users/OllieJennings/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-13T20:19:03Z","updated_at":"2015-05-13T20:19:03Z","closed_at":null,"body":"When using this library, the ref to an external schema just doesn't work, but when using others such as tv4, it works perfectly fine.\r\n\r\nThe Schema\r\n```\r\n{\r\n  \"type\": \"object\",\r\n  \"properties\": {\r\n     \"body\":  \"$ref\": \"#oauth\"\r\n  }\r\n}\r\n```\r\n\r\nAnd the defs schema\r\n```\r\n{\r\n  \"definitions\":\r\n    \"oauth\": { ... }\r\n}\r\n```\r\n\r\nwhen doing\r\n\r\n``\r\nvalidate = validator(schema, { \"schemas\": defs.defintiions });\r\nvalidate(req);\r\n``\r\n\r\nThe error l get is: `reference schema does not match`\r\n\r\n"}}