Skip to content

Commit

Permalink
update docs for new valid inputs.boolean values (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Friend committed Nov 21, 2014
1 parent fd451eb commit 65158aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flask_restful/inputs.py
Expand Up @@ -200,7 +200,8 @@ def int_range(low, high, value, argument='argument'):


def boolean(value):
"""Parse the string "true" or "false" as a boolean (case insensitive). if
"""Parse the string "true" or "false" as a boolean (case insensitive).
Also accepts "1" and "0" as True/False (respectively). If
the input is from the request JSON body, the type is already a native
python boolean, and will be passed through without further parsing."""
if type(value) == bool:
Expand Down

0 comments on commit 65158aa

Please sign in to comment.