{"action":"created","issue":{"url":"https://api.github.com/repos/Julian/jsonschema/issues/274","repository_url":"https://api.github.com/repos/Julian/jsonschema","labels_url":"https://api.github.com/repos/Julian/jsonschema/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/Julian/jsonschema/issues/274/comments","events_url":"https://api.github.com/repos/Julian/jsonschema/issues/274/events","html_url":"https://github.com/Julian/jsonschema/issues/274","id":132850864,"number":274,"title":"recursive relativel references don't seem to work correctly","user":{"login":"fleur","id":60597,"avatar_url":"https://avatars.githubusercontent.com/u/60597?v=3","gravatar_id":"","url":"https://api.github.com/users/fleur","html_url":"https://github.com/fleur","followers_url":"https://api.github.com/users/fleur/followers","following_url":"https://api.github.com/users/fleur/following{/other_user}","gists_url":"https://api.github.com/users/fleur/gists{/gist_id}","starred_url":"https://api.github.com/users/fleur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fleur/subscriptions","organizations_url":"https://api.github.com/users/fleur/orgs","repos_url":"https://api.github.com/users/fleur/repos","events_url":"https://api.github.com/users/fleur/events{/privacy}","received_events_url":"https://api.github.com/users/fleur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-02-10T23:43:47Z","updated_at":"2016-09-09T14:08:59Z","closed_at":null,"body":"Maybe I'm misunderstanding JSON Schema, but the resolver seems to be adding directories onto it's resolver path as it goes down a relative path.  If I have a 'project' schema that references a 'container' schema, that references a 'generic' schema, the references have to look like this to work, even with all files in the same directory:\r\n\r\nproject: \"allOf\": [ { \"$ref\": \"file:schemas/container.json\" } ],\r\ncontainer: \"allOf\": [ { \"$ref\": \"file:generic.json\" } ],\r\n\r\nI've got a github project here because the example has to be a little involved: https://github.com/fleur/jsonschema-bug\r\n"},"comment":{"url":"https://api.github.com/repos/Julian/jsonschema/issues/comments/245923547","html_url":"https://github.com/Julian/jsonschema/issues/274#issuecomment-245923547","issue_url":"https://api.github.com/repos/Julian/jsonschema/issues/274","id":245923547,"user":{"login":"holvianssi","id":19683629,"avatar_url":"https://avatars.githubusercontent.com/u/19683629?v=3","gravatar_id":"","url":"https://api.github.com/users/holvianssi","html_url":"https://github.com/holvianssi","followers_url":"https://api.github.com/users/holvianssi/followers","following_url":"https://api.github.com/users/holvianssi/following{/other_user}","gists_url":"https://api.github.com/users/holvianssi/gists{/gist_id}","starred_url":"https://api.github.com/users/holvianssi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holvianssi/subscriptions","organizations_url":"https://api.github.com/users/holvianssi/orgs","repos_url":"https://api.github.com/users/holvianssi/repos","events_url":"https://api.github.com/users/holvianssi/events{/privacy}","received_events_url":"https://api.github.com/users/holvianssi/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T14:08:59Z","updated_at":"2016-09-09T14:08:59Z","body":"Another solution might be to just have some validator method for which you give the full path of the schema as parameter, nothing else. This way the validator would immediately know the base_uri for the first file and could always resolve relative to the file being currently under processing."}}
{"actor":{"display_login":"holvianssi"}}