{"action":"closed","issue":{"url":"https://api.github.com/repos/okfn/datapackage-py/issues/22","labels_url":"https://api.github.com/repos/okfn/datapackage-py/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/okfn/datapackage-py/issues/22/comments","events_url":"https://api.github.com/repos/okfn/datapackage-py/issues/22/events","html_url":"https://github.com/okfn/datapackage-py/issues/22","id":122318479,"number":22,"title":"Delegate schema loading and validation to datapackage-validate-py","user":{"login":"vitorbaptista","id":76945,"avatar_url":"https://avatars.githubusercontent.com/u/76945?v=3","gravatar_id":"","url":"https://api.github.com/users/vitorbaptista","html_url":"https://github.com/vitorbaptista","followers_url":"https://api.github.com/users/vitorbaptista/followers","following_url":"https://api.github.com/users/vitorbaptista/following{/other_user}","gists_url":"https://api.github.com/users/vitorbaptista/gists{/gist_id}","starred_url":"https://api.github.com/users/vitorbaptista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitorbaptista/subscriptions","organizations_url":"https://api.github.com/users/vitorbaptista/orgs","repos_url":"https://api.github.com/users/vitorbaptista/repos","events_url":"https://api.github.com/users/vitorbaptista/events{/privacy}","received_events_url":"https://api.github.com/users/vitorbaptista/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"vitorbaptista","id":76945,"avatar_url":"https://avatars.githubusercontent.com/u/76945?v=3","gravatar_id":"","url":"https://api.github.com/users/vitorbaptista","html_url":"https://github.com/vitorbaptista","followers_url":"https://api.github.com/users/vitorbaptista/followers","following_url":"https://api.github.com/users/vitorbaptista/following{/other_user}","gists_url":"https://api.github.com/users/vitorbaptista/gists{/gist_id}","starred_url":"https://api.github.com/users/vitorbaptista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitorbaptista/subscriptions","organizations_url":"https://api.github.com/users/vitorbaptista/orgs","repos_url":"https://api.github.com/users/vitorbaptista/repos","events_url":"https://api.github.com/users/vitorbaptista/events{/privacy}","received_events_url":"https://api.github.com/users/vitorbaptista/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/okfn/datapackage-py/milestones/1","html_url":"https://github.com/okfn/datapackage-py/milestones/Current","labels_url":"https://api.github.com/repos/okfn/datapackage-py/milestones/1/labels","id":1363254,"number":1,"title":"Current","description":"","creator":{"login":"pwalsh","id":791678,"avatar_url":"https://avatars.githubusercontent.com/u/791678?v=3","gravatar_id":"","url":"https://api.github.com/users/pwalsh","html_url":"https://github.com/pwalsh","followers_url":"https://api.github.com/users/pwalsh/followers","following_url":"https://api.github.com/users/pwalsh/following{/other_user}","gists_url":"https://api.github.com/users/pwalsh/gists{/gist_id}","starred_url":"https://api.github.com/users/pwalsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwalsh/subscriptions","organizations_url":"https://api.github.com/users/pwalsh/orgs","repos_url":"https://api.github.com/users/pwalsh/repos","events_url":"https://api.github.com/users/pwalsh/events{/privacy}","received_events_url":"https://api.github.com/users/pwalsh/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":7,"state":"open","created_at":"2015-10-19T07:40:28Z","updated_at":"2016-01-15T21:00:36Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-12-15T17:01:22Z","updated_at":"2016-01-15T21:00:36Z","closed_at":"2016-01-15T21:00:36Z","body":"At first I encapsulated the validation inside the `Schema` class, but then realized that I should've used the `datapackage-validate-py` package. When realizing that, I've done a few small changes to use that package (i.e. changing the `Schema.validate()` to it). It worked, but after the changes done on https://github.com/dataprotocols/schemas/pull/33, it won't anymore. It's not enough to simply pass the `Schema` dict to `datapackage-validate-py`, but it also needs to know the registry's base path (if it exists), so it can resolve the schema's relative paths.\r\n\r\nIn the end, the `Schema` class should be moved to `datapackage-validate-py`."}}