{"action":"opened","issue":{"url":"https://api.github.com/repos/pywr/pywr/issues/521","repository_url":"https://api.github.com/repos/pywr/pywr","labels_url":"https://api.github.com/repos/pywr/pywr/issues/521/labels{/name}","comments_url":"https://api.github.com/repos/pywr/pywr/issues/521/comments","events_url":"https://api.github.com/repos/pywr/pywr/issues/521/events","html_url":"https://github.com/pywr/pywr/issues/521","id":258251400,"number":521,"title":"Decorating load methods to check for data consumption.","user":{"login":"jetuk","id":4604654,"avatar_url":"https://avatars1.githubusercontent.com/u/4604654?v=4","gravatar_id":"","url":"https://api.github.com/users/jetuk","html_url":"https://github.com/jetuk","followers_url":"https://api.github.com/users/jetuk/followers","following_url":"https://api.github.com/users/jetuk/following{/other_user}","gists_url":"https://api.github.com/users/jetuk/gists{/gist_id}","starred_url":"https://api.github.com/users/jetuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jetuk/subscriptions","organizations_url":"https://api.github.com/users/jetuk/orgs","repos_url":"https://api.github.com/users/jetuk/repos","events_url":"https://api.github.com/users/jetuk/events{/privacy}","received_events_url":"https://api.github.com/users/jetuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-16T18:59:23Z","updated_at":"2017-09-16T18:59:23Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"We were hit by a bug in another project that uses the same `load` classmethod to create objects from an external format. We could create a decorator for these functions that does some checks at the end (e.g. ensures all the given data is consumed). \r\n\r\nAny thoughts @snorfalorpagus ?"}}
{"actor":{"display_login":"jetuk"}}