Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Body is a dict when it should be an object #3

Open
Stuart-Wilcox opened this issue Apr 9, 2018 · 1 comment
Open

Body is a dict when it should be an object #3

Stuart-Wilcox opened this issue Apr 9, 2018 · 1 comment

Comments

@Stuart-Wilcox
Copy link
Owner

Using a content type of JSON, the body is a python dict, which means accessing attributes of the body incorrectly may result in a KeyError. It would be better if the body was either a modified dict, that instead of throwing KeyError would just return None, or else a custom body object where attributes could be accessed as object attributes; ie req.body.value instead of req.body['value'].

@Stuart-Wilcox
Copy link
Owner Author

This issue will likely be resolved with release of 1.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant