Skip to content

Commit 3fd9b8a

Browse files
committed
fix falcon request validate
1 parent 39c719c commit 3fd9b8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

swagger_py_codegen/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Version information."""
22

33
# The following line *must* be the last in the module, exactly as formatted:
4-
__version__ = "0.3.5"
4+
__version__ = "0.3.6"

swagger_py_codegen/templates/falcon/validators.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class FalconValidatorAdaptor(object):
8686

8787
def validate(self, value):
8888
value = self.type_convert(value)
89-
errors = {e.path[0]: e.message for e in self.validator.iter_errors(value)}
89+
errors = list(e.message for e in self.validator.iter_errors(value))
9090
return normalize(self.validator.schema, value, resolver=resolver)[0], errors
9191

9292

0 commit comments

Comments
 (0)