{"action":"created","issue":{"url":"https://api.github.com/repos/justinrainbow/json-schema/issues/311","repository_url":"https://api.github.com/repos/justinrainbow/json-schema","labels_url":"https://api.github.com/repos/justinrainbow/json-schema/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/justinrainbow/json-schema/issues/311/comments","events_url":"https://api.github.com/repos/justinrainbow/json-schema/issues/311/events","html_url":"https://github.com/justinrainbow/json-schema/issues/311","id":179273573,"number":311,"title":"Documentation: Following the readme does not work","user":{"login":"nwolff","id":40599,"avatar_url":"https://avatars.githubusercontent.com/u/40599?v=3","gravatar_id":"","url":"https://api.github.com/users/nwolff","html_url":"https://github.com/nwolff","followers_url":"https://api.github.com/users/nwolff/followers","following_url":"https://api.github.com/users/nwolff/following{/other_user}","gists_url":"https://api.github.com/users/nwolff/gists{/gist_id}","starred_url":"https://api.github.com/users/nwolff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwolff/subscriptions","organizations_url":"https://api.github.com/users/nwolff/orgs","repos_url":"https://api.github.com/users/nwolff/repos","events_url":"https://api.github.com/users/nwolff/events{/privacy}","received_events_url":"https://api.github.com/users/nwolff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-26T16:19:20Z","updated_at":"2016-09-27T21:08:02Z","closed_at":null,"body":"Following the current readme:\r\n\r\nI installed json-schema:~2.0\r\n\r\nI tried to follow the example in the usage section and the schema was never being read (and the validator always told me things were valid). It's because in version 2.0.x the validator expects an object containing a parsed schema and not a $ref->uri map.\r\n\r\nThen I spent an hour in xdebug and then I found a discussion of a similar issue: https://github.com/justinrainbow/json-schema/issues/299 \r\n\r\nI think there are 2 fixes for this:\r\n- Upgrade the readme to tell people to install json-schema:~3.0\r\n- Warn the user when the schema cannot be loaded. I don't know how to implement this throughout, but these are the lines that were giving me pain: https://github.com/justinrainbow/json-schema/blob/master/src/JsonSchema/Constraints/UndefinedConstraint.php#L28-L30"},"comment":{"url":"https://api.github.com/repos/justinrainbow/json-schema/issues/comments/249999170","html_url":"https://github.com/justinrainbow/json-schema/issues/311#issuecomment-249999170","issue_url":"https://api.github.com/repos/justinrainbow/json-schema/issues/311","id":249999170,"user":{"login":"stamster","id":12804479,"avatar_url":"https://avatars.githubusercontent.com/u/12804479?v=3","gravatar_id":"","url":"https://api.github.com/users/stamster","html_url":"https://github.com/stamster","followers_url":"https://api.github.com/users/stamster/followers","following_url":"https://api.github.com/users/stamster/following{/other_user}","gists_url":"https://api.github.com/users/stamster/gists{/gist_id}","starred_url":"https://api.github.com/users/stamster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stamster/subscriptions","organizations_url":"https://api.github.com/users/stamster/orgs","repos_url":"https://api.github.com/users/stamster/repos","events_url":"https://api.github.com/users/stamster/events{/privacy}","received_events_url":"https://api.github.com/users/stamster/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T21:08:02Z","updated_at":"2016-09-27T21:08:02Z","body":"#299 "}}
{"actor":{"display_login":"stamster"}}