We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 841abfe + afc8dba commit 6919edbCopy full SHA for 6919edb
swagger_py_codegen/templates/flask/validators.tpl
@@ -91,6 +91,8 @@ def request_validate(view):
91
locations = validators.get((endpoint, method), {})
92
for location, schema in six.iteritems(locations):
93
value = getattr(request, location, MultiDict())
94
+ if value is None:
95
+ value = MultiDict()
96
validator = FlaskValidatorAdaptor(schema)
97
result, errors = validator.validate(value)
98
if errors:
0 commit comments