Skip to content

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