{"action":"opened","issue":{"url":"https://api.github.com/repos/ckan/ckanext-datapackager/issues/38","labels_url":"https://api.github.com/repos/ckan/ckanext-datapackager/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckanext-datapackager/issues/38/comments","events_url":"https://api.github.com/repos/ckan/ckanext-datapackager/issues/38/events","html_url":"https://github.com/ckan/ckanext-datapackager/issues/38","id":125588901,"number":38,"title":"Uploading a `datapackage.json` with no `url` in the resource returns confusing error","user":{"login":"amercader","id":200230,"avatar_url":"https://avatars.githubusercontent.com/u/200230?v=3","gravatar_id":"","url":"https://api.github.com/users/amercader","html_url":"https://github.com/amercader","followers_url":"https://api.github.com/users/amercader/followers","following_url":"https://api.github.com/users/amercader/following{/other_user}","gists_url":"https://api.github.com/users/amercader/gists{/gist_id}","starred_url":"https://api.github.com/users/amercader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amercader/subscriptions","organizations_url":"https://api.github.com/users/amercader/orgs","repos_url":"https://api.github.com/users/amercader/repos","events_url":"https://api.github.com/users/amercader/events{/privacy}","received_events_url":"https://api.github.com/users/amercader/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-08T11:03:16Z","updated_at":"2016-01-08T11:03:16Z","closed_at":null,"body":"For instance:\r\n\r\n```\r\n{\r\n    \"title\": \"Test no url\"\r\n    \"name\": \"bond-yields-uk-10y\",\r\n    \"resources\": [\r\n        {\r\n            \"format\": \"csv\",\r\n            \"path\": \"data/quarterly.csv\"\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\nYou get a validation error about the URL being missing, but it's not clear what URL are we talking about.\r\nMoreover CKAN displays an error message in the Upload/Link field making it extra confusing as it implies that there is something wrong with the upload.\r\n\r\n![error](http://i.imgur.com/HsjCquU.png)\r\n\r\nI understand that this is caused by the standard CKAN validation and the Data Package conversion librart but maybe we should capture the error at the extension level.\r\n\r\nAnd definitely provide more guidance as to what the `datapackage.json` should have for a successful import."}}