{"action":"created","issue":{"url":"https://api.github.com/repos/okfn/datapackage-validate/issues/6","labels_url":"https://api.github.com/repos/okfn/datapackage-validate/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/okfn/datapackage-validate/issues/6/comments","events_url":"https://api.github.com/repos/okfn/datapackage-validate/issues/6/events","html_url":"https://github.com/okfn/datapackage-validate/issues/6","id":85030296,"number":6,"title":"Refactor to use registry, and to take custom schemas","user":{"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},"labels":[{"url":"https://api.github.com/repos/okfn/datapackage-validate/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"gvidon","id":58164,"avatar_url":"https://avatars.githubusercontent.com/u/58164?v=3","gravatar_id":"","url":"https://api.github.com/users/gvidon","html_url":"https://github.com/gvidon","followers_url":"https://api.github.com/users/gvidon/followers","following_url":"https://api.github.com/users/gvidon/following{/other_user}","gists_url":"https://api.github.com/users/gvidon/gists{/gist_id}","starred_url":"https://api.github.com/users/gvidon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvidon/subscriptions","organizations_url":"https://api.github.com/users/gvidon/orgs","repos_url":"https://api.github.com/users/gvidon/repos","events_url":"https://api.github.com/users/gvidon/events{/privacy}","received_events_url":"https://api.github.com/users/gvidon/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-06-04T10:29:46Z","updated_at":"2015-06-14T18:26:46Z","closed_at":null,"body":"@rgrp /cc @gvidon\r\n\r\nI'd like to suggest we make the following changes to `datapackage-validate`:\r\n\r\n* Remove schemas submodule\r\n* Instead, get our \"official\" schemas via the new [datapackage-registry module](https://github.com/okfn/datapackagist/tree/master/admin/src/scripts/components/datapackage-registry)\r\n* Don't read from a filepath, but read a schema object. For schemas in our registry, could pass a key which is the unique id of the schema\r\n\r\n### Goals\r\n\r\n* Package works seamlessly in browser and server environments ([doesn't have to read a file from path](https://github.com/okfn/datapackage-validate/blob/master/index.js#L12))\r\n* Package always stays up-to-date with changes to the core Data Package schemas\r\n* Package has instant access to any new schemas in our [registry](https://github.com/dataprotocols/registry)\r\n* Package can be used with any other custom Data Package schemas that a user may have\r\n\r\n### Cons\r\n\r\n* The only con is see is that datapackage-registry gets the \"official\" schemas via an API call over the web. I think it is not really a problem though - if the user does not want to rely on having a connection, that user could simply keep local copies of the schemas as part of their codebase, as we are adding the ability to load any schema\r\n\r\n### Pros\r\n\r\n* Because of the API call to the schemas - the official schemas are always up-to-date, and new schemas are seamlessly integrated :)"},"comment":{"url":"https://api.github.com/repos/okfn/datapackage-validate/issues/comments/111860560","html_url":"https://github.com/okfn/datapackage-validate/issues/6#issuecomment-111860560","issue_url":"https://api.github.com/repos/okfn/datapackage-validate/issues/6","id":111860560,"user":{"login":"gvidon","id":58164,"avatar_url":"https://avatars.githubusercontent.com/u/58164?v=3","gravatar_id":"","url":"https://api.github.com/users/gvidon","html_url":"https://github.com/gvidon","followers_url":"https://api.github.com/users/gvidon/followers","following_url":"https://api.github.com/users/gvidon/following{/other_user}","gists_url":"https://api.github.com/users/gvidon/gists{/gist_id}","starred_url":"https://api.github.com/users/gvidon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvidon/subscriptions","organizations_url":"https://api.github.com/users/gvidon/orgs","repos_url":"https://api.github.com/users/gvidon/repos","events_url":"https://api.github.com/users/gvidon/events{/privacy}","received_events_url":"https://api.github.com/users/gvidon/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T18:26:46Z","updated_at":"2015-06-14T18:26:46Z","body":"@pwalsh I absolutely agree to the point about basic usage. It is a real issue. If the most common way of using ```datapackage-validate``` is validating against base schema, then I would hardcode (or something like this) base schema and for other cases I would allow to pass schema object.\r\n\r\nAlso agree to ```datapackage-registry```, maybe we need to extend it to be able to get actual schema object. "}}