Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flask_restplus/reqparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def parse(self, request, bundle_errors=False):
continue
return self.handle_validation_error(error, bundle_errors)

if self.choices and value not in self.choices:
if self.nullable is False and self.choices and value not in self.choices:
msg = 'The value \'{0}\' is not a valid choice for \'{1}\'.'.format(value, name)
return self.handle_validation_error(msg, bundle_errors)

Expand Down