Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Deserialize request params to their corresponding schema field data types #30

Open
robinmaben opened this issue Dec 4, 2015 · 4 comments
Labels

Comments

@robinmaben
Copy link

E.g. For a GET request sending false or False in the request body should automatically convert it to python False in the kwargs to the read_list method

RB.stages.fetch({ is_prospecting: false})

def read_list(self, request, kwargs):
    #  where kwargs['is_prospecting'] should be False and not u'false'

Things can get complex when we have an object graph instead of a single flat object. So we can at least do this for the first level of simple data types

@robinmaben
Copy link
Author

@uttamk Have cloned to have a go at it. Thoughts welcome.

@uttamk
Copy link
Contributor

uttamk commented Dec 4, 2015

Cool !!
On 4 Dec 2015 8:18 pm, "Robin Maben" notifications@github.com wrote:

@uttamk https://github.com/uttamk Have cloned to have a go at it.
Thoughts welcome.


Reply to this email directly or view it on GitHub
#30 (comment).

@uttamk
Copy link
Contributor

uttamk commented Jan 19, 2016

@robinmaben any progress on this one ?

@robinmaben
Copy link
Author

@uttamk Haven't started yet.

@vedarthk vedarthk added the bug label Jan 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants