{"action":"created","issue":{"url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/1076","repository_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share","labels_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/1076/labels{/name}","comments_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/1076/comments","events_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/1076/events","html_url":"https://github.com/EUDAT-B2SHARE/b2share/issues/1076","id":170175344,"number":1076,"title":"api: validate schemas using doschema.","user":{"login":"nharraud","id":5708796,"avatar_url":"https://avatars.githubusercontent.com/u/5708796?v=3","gravatar_id":"","url":"https://api.github.com/users/nharraud","html_url":"https://github.com/nharraud","followers_url":"https://api.github.com/users/nharraud/followers","following_url":"https://api.github.com/users/nharraud/following{/other_user}","gists_url":"https://api.github.com/users/nharraud/gists{/gist_id}","starred_url":"https://api.github.com/users/nharraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nharraud/subscriptions","organizations_url":"https://api.github.com/users/nharraud/orgs","repos_url":"https://api.github.com/users/nharraud/repos","events_url":"https://api.github.com/users/nharraud/events{/privacy}","received_events_url":"https://api.github.com/users/nharraud/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/labels/Enhancement","name":"Enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/labels/Size:%20easy","name":"Size: easy","color":"8020f0"}],"state":"open","locked":false,"assignee":{"login":"PaulinaLach","id":1929323,"avatar_url":"https://avatars.githubusercontent.com/u/1929323?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulinaLach","html_url":"https://github.com/PaulinaLach","followers_url":"https://api.github.com/users/PaulinaLach/followers","following_url":"https://api.github.com/users/PaulinaLach/following{/other_user}","gists_url":"https://api.github.com/users/PaulinaLach/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulinaLach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulinaLach/subscriptions","organizations_url":"https://api.github.com/users/PaulinaLach/orgs","repos_url":"https://api.github.com/users/PaulinaLach/repos","events_url":"https://api.github.com/users/PaulinaLach/events{/privacy}","received_events_url":"https://api.github.com/users/PaulinaLach/received_events","type":"User","site_admin":false},"assignees":[{"login":"PaulinaLach","id":1929323,"avatar_url":"https://avatars.githubusercontent.com/u/1929323?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulinaLach","html_url":"https://github.com/PaulinaLach","followers_url":"https://api.github.com/users/PaulinaLach/followers","following_url":"https://api.github.com/users/PaulinaLach/following{/other_user}","gists_url":"https://api.github.com/users/PaulinaLach/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulinaLach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulinaLach/subscriptions","organizations_url":"https://api.github.com/users/PaulinaLach/orgs","repos_url":"https://api.github.com/users/PaulinaLach/repos","events_url":"https://api.github.com/users/PaulinaLach/events{/privacy}","received_events_url":"https://api.github.com/users/PaulinaLach/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/milestones/27","html_url":"https://github.com/EUDAT-B2SHARE/b2share/milestones/v2-backlog","labels_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/milestones/27/labels","id":1437094,"number":27,"title":"v2-backlog","description":"","creator":{"login":"emanueldima","id":231453,"avatar_url":"https://avatars.githubusercontent.com/u/231453?v=3","gravatar_id":"","url":"https://api.github.com/users/emanueldima","html_url":"https://github.com/emanueldima","followers_url":"https://api.github.com/users/emanueldima/followers","following_url":"https://api.github.com/users/emanueldima/following{/other_user}","gists_url":"https://api.github.com/users/emanueldima/gists{/gist_id}","starred_url":"https://api.github.com/users/emanueldima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanueldima/subscriptions","organizations_url":"https://api.github.com/users/emanueldima/orgs","repos_url":"https://api.github.com/users/emanueldima/repos","events_url":"https://api.github.com/users/emanueldima/events{/privacy}","received_events_url":"https://api.github.com/users/emanueldima/received_events","type":"User","site_admin":false},"open_issues":48,"closed_issues":21,"state":"open","created_at":"2015-12-01T10:17:19Z","updated_at":"2016-08-09T14:06:57Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-08-09T14:06:57Z","updated_at":"2016-08-09T16:10:34Z","closed_at":null,"body":"We need to use the validation function in inveniosoftware/doschema for the validation of our block and community schemas.\r\n\r\nThe validation should be done in the programmatic API. The REST API should have an error handler which forwards the exception as a REST Exception [as it is done here](https://github.com/EUDAT-B2SHARE/b2share/blob/def0d0cce6d0677bab5c4354c44a7b81f478e467/b2share/modules/records/errors.py#L49).\r\n\r\nNote: DoSchema is not released yet so the travis tests will work only in devel mode:\r\n- Add `-e git+git://github.com/inveniosoftware/doschema.git#egg=doschema` in this file https://github.com/EUDAT-B2SHARE/b2share/blob/evolution/requirements-devel.txt\r\n- Add doschema to setup.py.\r\n\r\nThe corresponding PR will of course be merged only once doschema is released so that the branch is not broken.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/comments/238603818","html_url":"https://github.com/EUDAT-B2SHARE/b2share/issues/1076#issuecomment-238603818","issue_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/1076","id":238603818,"user":{"login":"nharraud","id":5708796,"avatar_url":"https://avatars.githubusercontent.com/u/5708796?v=3","gravatar_id":"","url":"https://api.github.com/users/nharraud","html_url":"https://github.com/nharraud","followers_url":"https://api.github.com/users/nharraud/followers","following_url":"https://api.github.com/users/nharraud/following{/other_user}","gists_url":"https://api.github.com/users/nharraud/gists{/gist_id}","starred_url":"https://api.github.com/users/nharraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nharraud/subscriptions","organizations_url":"https://api.github.com/users/nharraud/orgs","repos_url":"https://api.github.com/users/nharraud/repos","events_url":"https://api.github.com/users/nharraud/events{/privacy}","received_events_url":"https://api.github.com/users/nharraud/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T16:10:34Z","updated_at":"2016-08-09T16:10:34Z","body":"@emanueldima Sorry I will rename this issue to make it more specific. The validation currently done by @thijscobben does not use doschema and is not sending any error response through the REST API.\r\n\r\nAs this one is blocked by doschema not being released I would separate the two Issues. One for a first \"structure validation\" of the schema, and another using doschema for backward compatibility."}}
{"actor":{"display_login":"nharraud"}}