{"action":"created","issue":{"url":"https://api.github.com/repos/digidotcom/python-suitcase/issues/7","labels_url":"https://api.github.com/repos/digidotcom/python-suitcase/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/digidotcom/python-suitcase/issues/7/comments","events_url":"https://api.github.com/repos/digidotcom/python-suitcase/issues/7/events","html_url":"https://github.com/digidotcom/python-suitcase/issues/7","id":95496441,"number":7,"title":"length_provider to DispatchTarget can't be None","user":{"login":"eisensheng","id":72146,"avatar_url":"https://avatars.githubusercontent.com/u/72146?v=3","gravatar_id":"","url":"https://api.github.com/users/eisensheng","html_url":"https://github.com/eisensheng","followers_url":"https://api.github.com/users/eisensheng/followers","following_url":"https://api.github.com/users/eisensheng/following{/other_user}","gists_url":"https://api.github.com/users/eisensheng/gists{/gist_id}","starred_url":"https://api.github.com/users/eisensheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eisensheng/subscriptions","organizations_url":"https://api.github.com/users/eisensheng/orgs","repos_url":"https://api.github.com/users/eisensheng/repos","events_url":"https://api.github.com/users/eisensheng/events{/privacy}","received_events_url":"https://api.github.com/users/eisensheng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-16T18:31:44Z","updated_at":"2015-07-26T19:34:30Z","closed_at":"2015-07-26T19:33:26Z","body":"The argument for the `length_provider` parameter in the DispatchTarget `__init__` method can't be `None`. \r\n\r\nThe documentation for [`suitcase.fields.DependentField`](http://digidotcom.github.io/python-suitcase/0.6/api.html#suitcase.fields.DependentField) and [`suitcase.fields.DispatchField`](http://digidotcom.github.io/python-suitcase/0.6/api.html#suitcase.fields.DispatchField) suggests that it should be possible to pass `None` or even leave the argument out.\r\n\r\nIt would be desirable to have this functionality though to mix and parse sub-structures with a fixed length and without a length provider and sub-structures with a dynamic length given a length provider and extra payload."},"comment":{"url":"https://api.github.com/repos/digidotcom/python-suitcase/issues/comments/125031399","html_url":"https://github.com/digidotcom/python-suitcase/issues/7#issuecomment-125031399","issue_url":"https://api.github.com/repos/digidotcom/python-suitcase/issues/7","id":125031399,"user":{"login":"eisensheng","id":72146,"avatar_url":"https://avatars.githubusercontent.com/u/72146?v=3","gravatar_id":"","url":"https://api.github.com/users/eisensheng","html_url":"https://github.com/eisensheng","followers_url":"https://api.github.com/users/eisensheng/followers","following_url":"https://api.github.com/users/eisensheng/following{/other_user}","gists_url":"https://api.github.com/users/eisensheng/gists{/gist_id}","starred_url":"https://api.github.com/users/eisensheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eisensheng/subscriptions","organizations_url":"https://api.github.com/users/eisensheng/orgs","repos_url":"https://api.github.com/users/eisensheng/repos","events_url":"https://api.github.com/users/eisensheng/events{/privacy}","received_events_url":"https://api.github.com/users/eisensheng/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T19:34:30Z","updated_at":"2015-07-26T19:34:30Z","body":":+1: "}}