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

Tweak to #152 so that callables work as regparser type arguments again #167

Merged
merged 2 commits into from
Jan 14, 2014

Conversation

lyschoening
Copy link
Contributor

No description provided.

@kevinburke
Copy link
Contributor

Hello Lars!

Thanks for this pull request. I'm a little bit confused as we're currently using callables as types in a few places in our codebase.

Perhaps you can add a test which exposes the failure in the current master?

@lyschoening
Copy link
Contributor Author

Hello Kevin,

I've added some tests to illustrate the issue. test_type_callable_none would fail without my change.

The issue only really pops up when using request.json where you can have an argument be None, unlike in request.data where an empty argument will simply be ''.

@skimbrel
Copy link
Contributor

Looks okay to me. @kevinburke did you want to weigh in again before merging?

@kevinburke
Copy link
Contributor

LGTM

skimbrel added a commit that referenced this pull request Jan 14, 2014
Tweak to #152 so that callables work as regparser type arguments again
@skimbrel skimbrel merged commit 98a47a0 into flask-restful:master Jan 14, 2014
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

Successfully merging this pull request may close these issues.

3 participants